Advertisement
YORDAN2347

SleepyCatTom

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