Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace SoftUniReception
- {
- class MainClass
- {
- public static void Main(string[] args)
- {
- int firstEmployeeAbility = int.Parse(Console.ReadLine());
- int secondEmployeeAbility = int.Parse(Console.ReadLine());
- int thirdEmployeeAbility = int.Parse(Console.ReadLine());
- int totalCountStudentsOnTheReception = int.Parse(Console.ReadLine());
- int counterForHours = 0;
- int totalHandleStudentsPerHour = firstEmployeeAbility + secondEmployeeAbility + thirdEmployeeAbility;
- while (totalCountStudentsOnTheReception > 0)
- {
- counterForHours++;
- if (counterForHours % 4 == 0 && counterForHours!=0)
- {
- continue;
- }
- totalCountStudentsOnTheReception -= totalHandleStudentsPerHour;
- }
- Console.WriteLine($"Time needed: {counterForHours}h.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement