HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


070. 50439 - Telephone Calls

Guest
• Discussion of problem (3)

Volume problems

• 052. 50503 - Welcome Andi - 2
• 053. 50501 - The Highest Average
• 055. 50355 - Bills of City Water Co...
• 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...
• 100. 50532 - Close City
• 120. 50511 - Class Average
• 130. 50416 - Placing Dominoes on ...
• 140. 50417 - Fun Fair
• 150. 50500 - Find Student
• 222. 50302 - Paper Scissors Rock

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. Difficulty Alpha

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