HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


055. 50355 - Bills of City Water Company

Guest
• Review clarifications (1)

Volume problems

• 040. 50879 - Passed or Failed
• 040. Problem 1
• 042. 50798 - Passing the course
• 045. 50391 - Cinema Tickets
• 048. 50403 - Number of Chairs
• 050. 50568 - Body Mass Index Calc...
• 052. 50503 - Welcome Andi - 2
• 053. 50501 - The Highest Average
• 055. 50355 - Bills of City Water ...
• 060. 50583 - Max of 3 numbers
• 062. 50402 - Hello World!
• 063. 50547 - Close Pair
• 065. 50436 - Pocket Money
• 068. 50581 - The roots of a quadrati...
• 070. 50439 - Telephone Calls
• 080. 50478 - Letter Grades
• 090. 50422 - Area and Perimeter of...

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