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
import math movie_name = input() movie_duration = int(input()) rest_time = int(input()) lunch_time = rest_time * 0.125 relax_time = rest_time * 0.25 total_time = movie_duration + lunch_time + relax_time if total_time <= rest_time: print(f"You have enough time to watch {movie_name} and left with {math.ceil(rest_time - total_time)} minutes free time.") else: print(f"You don't have enough time to watch {movie_name}, you need {math.ceil(total_time - rest_time)} more minutes.")
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)