Advertisement
simeonshopov

Sleepy cat Tom

Sep 10th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. rest_days=int(input())
  2. work_days=365-rest_days
  3. play_time=rest_days*127+work_days*63
  4. extra_time=30000-play_time
  5. if play_time<30000:
  6.   print(f"Tom sleeps well")
  7.   print(f"{int(extra_time/60)} hours and {(extra_time%60)} minutes less for play")
  8. elif play_time>30000:
  9.   print(f"Tom will run away")
  10.   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