Advertisement
bl00dt3ars

01. National Court

Jun 28th, 2021
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. employee_efficiency_1 = int(input())
  2. employee_efficiency_2 = int(input())
  3. employee_efficiency_3 = int(input())
  4. total_people = int(input())
  5. hours_needed = 0
  6. people_per_hour = employee_efficiency_1 + employee_efficiency_2 + employee_efficiency_3
  7.  
  8. while total_people > 0:
  9.     hours_needed += 1
  10.     if hours_needed % 4 == 0:
  11.         hours_needed += 1
  12.     total_people -= people_per_hour
  13.  
  14. print(f"Time needed: {hours_needed}h.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement