Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. package com.company;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Main {
  6.  
  7. public static void main(String[] args) {
  8. Scanner scanner = new Scanner(System.in);
  9. double L = Double.parseDouble(scanner.nextLine());
  10. double W = Double.parseDouble(scanner.nextLine());
  11. double A = Double.parseDouble(scanner.nextLine());
  12.  
  13. int totalZala = (int)((L * 100) * (W * 100));
  14. int totalGarderob = (int)((A * 100) * (A * 100));
  15. int totalPeika = totalZala / 10;
  16. int freeSpace = totalZala - totalGarderob - totalPeika;
  17. int numberOfDancers = freeSpace / (40 + 7000);
  18. System.out.printf("%.0f",Math.floor(numberOfDancers));
  19.  
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement