Advertisement
Ivakis

Training Lab

Aug 8th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Hall2 {
  4. public static void main(String[] args) {
  5.  
  6. Scanner scan = new Scanner(System.in);
  7.  
  8. double h = Double.parseDouble(scan.nextLine());
  9. double w = Double.parseDouble(scan.nextLine());
  10.  
  11. int rows = (int) ((h * 100) / 120);
  12. int cols = (int) ((w * 100-100) / 70);
  13.  
  14. int seats = rows * cols - 3;
  15.  
  16. System.out.println(seats);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement