Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _2._3.Elevator
- {
- class Program
- {
- static void Main(string[] args)
- {
- int peopleNumN = int.Parse(Console.ReadLine());
- int capacityNumP = int.Parse(Console.ReadLine());
- int courses = (int)Math.Ceiling((double)peopleNumN / capacityNumP);
- if (peopleNumN <= capacityNumP)
- {
- Console.WriteLine(courses);
- }
- else
- {
- Console.WriteLine(courses);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment