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
vacation_price = float(input()) puzzles_count = int(input()) doll_count = int(input()) bear_count = int(input()) minion_count = int(input()) truck_count = int(input()) puzzle = 2.6 doll = 3 bear = 4.1 minion = 8.2 truck = 2 total_sum = 0 total_toys = puzzles_count + doll_count + bear_count + minion_count + truck_count total_sum += puzzle * puzzles_count total_sum += doll * doll_count total_sum += bear * bear_count total_sum += minion * minion_count total_sum += truck * truck_count if total_toys >= 50: total_sum = 0.75 * total_sum total_sum -= total_sum * 0.1 if total_sum >= vacation_price: print(f"Yes! {total_sum - vacation_price:.2f} lv left.") else: print(f"Not enough money! {vacation_price - total_sum:.2f} lv needed.")
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)