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
season = input() km_per_month = float(input()) total_km = km_per_month * 4 total_earned = 0 if km_per_month <= 5000: if season == "Winter": total_earned = 1.05 * total_km elif season == "Summer": total_earned = 0.9 * total_km else: total_earned = 0.75 * total_km elif 5000 < km_per_month <= 10000: if season == "Winter": total_earned = 1.25 * total_km elif season == "Summer": total_earned = 1.1 * total_km else: total_earned = 0.95 * total_km elif 10000 < km_per_month <= 20000: total_earned = 1.45 * total_km total_earned *= 0.9 print(f"{total_earned:.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)