Advertisement
emodev

Untitled

Jan 14th, 2019
472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. import java.util.Map;
  2. import java.util.Scanner;
  3.  
  4. public class Demo {
  5.     public static void main(String[] args) {
  6.         Scanner scanner = new Scanner(System.in);
  7.  
  8.         double l = Double.parseDouble(scanner.nextLine());
  9.         double w = Double.parseDouble(scanner.nextLine());
  10.  
  11.         double columns = Math.floor(((w * 100) - 100) / 70);
  12.         double rows = Math.floor((l * 100) / 120);
  13.  
  14.         double workSpaces = columns * rows - 3;
  15.  
  16.         System.out.println(Math.round(workSpaces));
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement