Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Map;
- import java.util.Scanner;
- public class Demo {
- 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 * 100) - 100) / 70);
- double rows = Math.floor((l * 100) / 120);
- double workSpaces = columns * rows - 3;
- System.out.println(Math.round(workSpaces));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement