Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Study {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- double l = Double.parseDouble(scanner.nextLine());
- double w = Double.parseDouble(scanner.nextLine());
- double columns = Math.floor((w - 1) / 70);
- double rows = Math.floor(l / 1.2);
- double all = columns * rows;
- double seats = all - 3;
- System.out.println(Math.floor(seats));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement