didatzi

Class Room

Jan 15th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. /**
  4.  * Created by Deyan Yordanov on 15.1.2017 г..
  5.  */
  6. public class ClassRoom {
  7.     public static void main(String[] args) {
  8.         Scanner scanner = new Scanner(System.in);
  9.         Double h = Double.parseDouble(scanner.nextLine());
  10.         Double w = Double.parseDouble(scanner.nextLine());
  11.         int row = (int)(h / 1.20);
  12.         int line = (int)((w-1) /0.70);
  13.         System.out.println((row * line)-3);
  14.     }
  15. }
Add Comment
Please, Sign In to add comment