Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- days_off = int(input())
- days_at_work = 365 - days_off
- time_for_play_in_min = days_off * 127 + days_at_work * 63
- if time_for_play_in_min > 30000:
- more_time = time_for_play_in_min - 30000
- print("Tom will run away")
- print(f"{more_time // 60} hours and {more_time % 60} minutes more for play")
- else:
- less_time = 30000 - time_for_play_in_min
- print("Tom sleeps well")
- print(f"{less_time // 60} hours and {less_time % 60} minutes less for play")
Advertisement
Add Comment
Please, Sign In to add comment