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

Разделы > Арифметика > задача:


50439 - Telephone Calls

Гость
• Обсуждение задачи (3)

Задачи раздела

• 50522 - Multiplication Table - 2
• 50814 - Buying Books from Internet
• 50812 - Total Discount for the clients
• 51003 - Double Prime
• 50435 - City Electric Bills
• 50527 - Sum of LCMs
• 50440 - Call Center
• 50342 - 100 Factorial
• 50439 - Telephone Calls
• 50436 - Pocket Money
• 50379 - a^b modulus k
• 50353 - Cube of the Largest number
• 50359 - Mode of a Series
• 50539 - Number of Chairs - 2
• 50532 - Close City
• 50462 - Class Average (3 Grades)
• 50288 - Even numbers in even posit...

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

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

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan. Сложность Альфа

Telephone Calls

Mr. Tafaj has gone for a trip abroad. He wants to call his family from a call center. The rates change according to the minute you talked:

  • The first 3 minutes is $6
  • Every additional 10 seconds is $0.5

Question:
Write a program that is going to get the total seconds (seconds) talked. And then, it will print the amount due from the user.

Input specification
You will be given an integer number (seconds) where 0 ≤ seconds ≤ 20000

Output specification
Calculate and show the amount due from the user.

Sample Input I
  190
Sample Input II
  191
Sample Output I
  6.5
Sample Output II
  7


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

www.contester.ru