Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- first_workers = int(input())
- second_workers = int(input())
- third_workers = int(input())
- students = int(input())
- students_per_hour = first_workers + second_workers + third_workers
- hours = 0
- while students > 0:
- hours += 1
- if hours % 4 == 0:
- continue
- students -= students_per_hour
- print(f'Time needed: {hours}h.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement