Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class YchebnaZala {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- double len = Double.parseDouble(sc.nextLine());
- double wid = Double.parseDouble(sc.nextLine());
- len = len * 100;
- wid = wid * 100;
- int cols = (int) (wid - 100) / 70;
- int rows = (int) (len / 120);
- int seats = (rows * cols) - 3;
- System.out.println(seats);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment