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