Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- empl_1 = int(input())
- empl_2 = int(input())
- empl_3 = int(input())
- all_student = int(input())
- students_to_answer = all_student
- student_per_hour = empl_1+empl_2+empl_3
- time_for_answers = 0
- while students_to_answer > 0:
- for i in range(1, 4):
- students_to_answer -= student_per_hour
- time_for_answers += 1
- if students_to_answer <= 0:
- break
- else:
- i += 1
- if students_to_answer > 0:
- time_for_answers += 1
- i = 1
- print(f'Time needed: {time_for_answers}h.')
Advertisement
Add Comment
Please, Sign In to add comment