Advertisement
DiYane

SoftUni reception

Sep 16th, 2023
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. employee_one = int(input())
  2. employee_two = int(input())
  3. employee_three = int(input())
  4. num_of_students = int(input())
  5.  
  6. students_per_hours = employee_one + employee_two + employee_three
  7. hours = 0
  8.  
  9. while num_of_students > 0:
  10.     hours += 1
  11.  
  12.     if hours % 4 == 0:
  13.         continue
  14.  
  15.     num_of_students -= students_per_hours
  16. print(f"Time needed: {hours}h.")
Tags: python
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement