Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Project: Exam_101_January_2016 - created by borkins on 2017-05-03.
- */
- import java.util.Scanner;
- public class _02_Bricks
- {
- public static void main(String[] args)
- {
- Scanner console = new Scanner(System.in);
- int x = Integer.parseInt(console.nextLine());
- int w = Integer.parseInt(console.nextLine());
- int m = Integer.parseInt(console.nextLine());
- System.out.println((int) Math.ceil((double) x / (w * m)));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment