Advertisement
GeorgiLukanov87

01. SoftUni Reception

Jun 18th, 2022
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. first_workers = int(input())
  2. second_workers = int(input())
  3. third_workers = int(input())
  4. students = int(input())
  5. students_per_hour = first_workers + second_workers + third_workers
  6. hours = 0
  7. while students > 0:
  8.     hours += 1
  9.     if hours % 4 == 0:
  10.         continue
  11.     students -= students_per_hour
  12. print(f'Time needed: {hours}h.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement