Sichanov

sleepy

May 4th, 2021
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. days_off = int(input())
  2. days_at_work = 365 - days_off
  3. time_for_play_in_min = days_off * 127 + days_at_work * 63
  4.  
  5.  
  6. if time_for_play_in_min > 30000:
  7.     more_time = time_for_play_in_min - 30000
  8.     print("Tom will run away")
  9.     print(f"{more_time // 60} hours and {more_time % 60} minutes more for play")
  10. else:
  11.     less_time = 30000 - time_for_play_in_min
  12.     print("Tom sleeps well")
  13.     print(f"{less_time // 60} hours and {less_time % 60} minutes less for play")
  14.  
Advertisement
Add Comment
Please, Sign In to add comment