ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Сборники > Beginners > задача:


055. 50355 - Bills of City Water Company

Гость
• Вопросы к жюри (1)

Задачи сборника

• 040. 50879 - Passed or Failed
• 040. Student results
• 042. 50798 - Passing the course
• 045. 50391 - Cinema Tickets
• 048. 50403 - Number of Chairs
• 050. 50568 - Llogaritesi i indeksit te...
• 052. 50503 - Welcome Andi - 2
• 053. 50501 - The Highest Average
• 055. 50355 - Bills of City Water ...
• 060. 50583 - Numri ma te madhe n...
• 062. 50402 - Hello World!
• 063. Cifti me i afert
• 065. 50436 - Pocket Money
• 068. 50581 - Rrenjet e Ekuacionit K...
• 070. 50439 - Telephone Calls
• 080. 50478 - Letter Grades
• 090. 50422 - Area and Perimeter of...

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
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