borkins

Exam Jan-2016 - 02. Bricks

May 11th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. /**
  2.  * Project: Exam_101_January_2016 - created by borkins on 2017-05-03.
  3.  */
  4.  
  5. import java.util.Scanner;
  6.  
  7. public class _02_Bricks
  8. {
  9.     public static void main(String[] args)
  10.     {
  11.         Scanner console = new Scanner(System.in);
  12.        
  13.         int x = Integer.parseInt(console.nextLine());
  14.         int w = Integer.parseInt(console.nextLine());
  15.         int m = Integer.parseInt(console.nextLine());
  16.        
  17.         System.out.println((int) Math.ceil((double) x / (w * m)));
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment