Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rest_days = int(input())
- working_days = 365 - rest_days
- play_time = working_days * 63 + rest_days * 127
- if play_time > 30000:
- hours = (play_time - 30000) // 60
- minutes = (play_time - 30000) % 60
- print("Tom will run away")
- print(f"{hours} hours and {minutes} minutes more for play")
- else:
- hours = (30000 - play_time) // 60
- minutes = (30000 - 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