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