Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
rest_days = int(input()) working_days = 365 - rest_days play_time = working_days * 63 + rest_days * 127 if play_time > 30000: hours = (play_time - 30000) // 60 minutes = (play_time - 30000) % 60 print("Tom will run away") print(f"{hours} hours and {minutes} minutes more for play") else: hours = (30000 - play_time) // 60 minutes = (30000 - play_time) % 60 print("Tom sleeps well") print(f"{hours} hours and {minutes} minutes less for play")
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)