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
flower_type = input() quantity_flowers = int(input()) budget = int(input()) total = 0 roses_price = 5 dahlias_price = 3.8 tulip_price = 2.8 narcissus_price = 3 gladiolus_price = 2.5 if flower_type == "Roses": total = quantity_flowers * roses_price if quantity_flowers > 80: total -= total * 0.1 elif flower_type == "Dahlias": total = quantity_flowers * dahlias_price if quantity_flowers > 90: total -= total * 0.15 elif flower_type == "Tulips": total = quantity_flowers * tulip_price if quantity_flowers > 80: total -= total * 0.15 elif flower_type == "Narcissus": total = quantity_flowers * narcissus_price if quantity_flowers < 120: total += total * 0.15 elif flower_type == "Gladiolus": total = quantity_flowers * gladiolus_price if quantity_flowers < 80: total += total * 0.2 if budget >= total: print(f"Hey, you have a great garden with {quantity_flowers} {flower_type} and {budget - total:.2f} leva left.") else: print(f"Not enough money, you need {total - budget:.2f} leva more.")
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)