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
chrysanthemum = int(input()) roses = int(input()) tulips = int(input()) season = input() holiday = input() total_flowers = chrysanthemum + roses + tulips total_price = 0 if season == "Spring" or season == "Summer": total_price += 2 * chrysanthemum total_price += 4.1 * roses total_price += 2.5 * tulips if tulips > 7 and season == "Spring": total_price *= 0.95 elif season == "Autumn" or season == "Winter": total_price += 3.75 * chrysanthemum total_price += 4.5 * roses total_price += 4.15 * tulips if roses >= 10 and season == "Winter": total_price *= 0.9 if holiday == "Y": total_price *= 1.15 if total_flowers > 20: total_price *= 0.8 print(f"{2 + total_price:.2f}")
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)