Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- first = int(input())
- second = int(input())
- third = int(input())
- students = int(input())
- counter = 1
- hours = 0
- while students > 0:
- students -= first + second + third
- hours += (2 if counter % 3 == 0 and students > 0 else 1)
- counter += 1
- print(f"Time needed: {hours}h.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement