Advertisement
Guest User

Untitled

a guest
Sep 24th, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String[] args) {
  6.  
  7.  
  8.         Scanner scanner = new Scanner(System.in);
  9.  
  10.         double bricks = Double.parseDouble(scanner.nextLine());
  11.         double workers = Double.parseDouble(scanner.nextLine());
  12.         double volume = Double.parseDouble(scanner.nextLine());
  13.  
  14.         double kurs  =  volume*workers ;
  15.         double needKursove = bricks/kurs;
  16.  
  17.         System.out.printf( "%f", Math.ceil(needKursove)) ;
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement