Advertisement
Spocoman

05. Training Lab

Aug 20th, 2024
121
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. public class TrainingLab {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.         double w = Double.parseDouble(scanner.nextLine());
  7.         double h = Double.parseDouble(scanner.nextLine());
  8.  
  9.         double num = (h - 1) * 100 / 70;
  10.         double row = (w * 100 / 120);
  11.         double sum = Math.floor(num) * Math.floor(row) - 3;
  12.  
  13.         System.out.println(sum);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement