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