Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Elevator_03 {
- public static void main(String[] args) {
- Scanner scanner = new Scanner (System.in);
- int people = Integer.parseInt(scanner.nextLine());
- int capacity = Integer.parseInt(scanner.nextLine());
- //курс = people / capacity; (нагоре)
- double courses = people * 1.0 / capacity;
- System.out.printf("%.0f", Math.ceil(courses));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment