HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > CEN111 Homeworks 2013-2015 > problem:


14-Fall1-50. 50481 - Car Parking

CEN111 Homeworks 2013-2015

Start: Jan.10.2015 at 10:00:00 AM
Finish: Jan.10.2015 at 03:00:00 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (10)

Contest problems

• 50378 - Sum of the given digits
• 13-Fall2-10. 50379 - a^b modulus k
• 13-Fall2-20. 50399 - Mobile Base Sta...
• 13-Fall2-40. 50401 - Sum of Odd N...
• 13-Fall2-50. 50400 - nth Row rth El...
• 14-Fall1-10. 50532 - Close City
• 14-Fall1-30. 50500 - Find Student
• 14-Fall1-40. 50511 - Class Average
• 14-Fall1-50. 50481 - Car Parking
• 14-Fall2-10. 50510 - What floor are ...
• 14-Fall2-20. 50504 - School contest
• 14-Fall2-30. 50523 - Total Tax to Pay
• 14-Fall2-40. 50514 - Bookkeeping
• 14-Fall2-50. 50534 - Top Trading C...
• 14-Fall2-60. 50487 - Radius of Inscr...
• 14-FallResit-20. 50407 - Missing Nu...
• 14-Spr2-10. 50426 - Calculating Sales

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 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