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