Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int bricks = Integer.parseInt(scanner.nextLine());
- int workers = Integer.parseInt(scanner.nextLine());
- int volume = Integer.parseInt(scanner.nextLine());
- int kurs = volume*workers ;
- int needKursove = bricks/kurs;
- int needKursove2 = bricks%kurs;
- if (needKursove2!=0){
- needKursove++;
- }
- System.out.printf( "%d", needKursove) ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement