HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Ad-Hoc > problem:


50355 - Bills of City Water Company

Guest
• Review clarifications (1)

Section problems

• 50302 - Paper Scissors Rock
• 50396 - Cinema Tickets - 1
• 50366 - Student Averages (2 Grades)
• 50357 - Convert Euros into Dollars
• 50466 - Drawing Square From Stars
• 50351 - Convert inches to cm
• 50356 - Hours Passed
• 50350 - Fahrenheit to Celsius
• 50355 - Bills of City Water Com...
• 50467 - Random Numbers
• 50298 - Coins
• 50591 - Leap year
• 50312 - Sales Bar Chart
• 50313 - Pattern Displays
• 50393 - Palindromic Numbers
• 50375 - Area of Circles
• 50325 - How much time passed?

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Question by Ibrahim Mesecan.

Bills of City Water Company

Write a program for the bills of the city water company. The water rates are computed as follows:

  • $10 fixed price for the first 4 tones
  • If it exceeds 4 tones; $0.005 for each additional litre.
Your program will first get the amount of water used (litres). It will then print the amount due from the user.

Input specification
You will be given the amount in liters - an integer number (num) where 0 ≤ num ≤ 50000

Output specification
Show the amount due from the user. The number will contain at most two digits after the floating point.

Sample Input I
  2367
Sample Input II
  5387
Sample Output I
  10
Sample Output II
  16.93


Для отправки решений необходимо выполнить вход.

www.contester.ru