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

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


50481 - Car Parking

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

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

• 50267 - Interesting permutations
• 50424 - Area
• 50372 - Number Quadruplets
• 51007 - Function f(x)
• 50413 - Valid Permutations
• 50481 - Car Parking
• 50417 - Fun Fair
• 50530 - Sum of Ratios
• 50384 - Permutations revisited
• 50368 - Right-most non zero digit in N!
• 50369 - Base Conversion
• 50407 - Missing Number
• 51003 - Double Prime
• 50807 - Euro to Leke

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

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

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Meral Ari.

Car Parking

Arbeni parking garage charges a 150 Lek minimum fee to park up to four hours. The garage charges an additional 50 Lek per hour for each hour or part thereof in excess of four hours. The maximum charge for any given 24-hour period is 800 lek. Assume that no car parks for longer than 24 hours at a time.

Question: Write a program that will calculate and print the total parking charge for three customers.

Input specification
You will be given parking time for three cars; where the parking time is an integer between 1 and 24.

Output specification
Show the total amount collected from three cars' parking.

 Sample Input I     Sample Input II   
 5 3 6
 15 3 23
 Sample Output I     Sample Output II   
 600
 1650

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

www.contester.ru