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