HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > Lab11 - SWE > problem:


50440 - Call Center

Lab11 - SWE

Start: Dec.12.2023 at 12:16:04 AM
Finish: Dec.22.2023 at 11:16:04 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (3)

Contest problems

• 50428 - Three Times
• 50396 - Cinema Tickets - 1
• 50433 - Sum of Cubes
• 50435 - City Electric Bills
• 50440 - Call Center
• 50462 - Class Average (3 Grades)
• 13-Fall2-30. 50397 - The Number of...
• 14-03-50. 50469 - Letter Grades
• 15-SprPr2-50. 50508 - The Biggest ...
• 2. 50459 - The Biggest Digit

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.

Call Center

After his trip, Mr. Tafaj decided open a call center in his town. He wants the system to calculate the results automatically. The rates change according to the minute you talked:

  • The first 2 minutes is 100 Leke
  • Every additional 10 seconds is 5Leke

Question:
Write a program that is going to read n phone call times (in seconds). And then, the program will calculate the total amount collected from all users.

Input specification
You will be given an integer number (n) where 0 ≤ n ≤ 30000. Then, the following n lines will contain the talk time (in seconds) for n people. Every phone call can be an integer between 1 and 2000.

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

Sample Input I
  5
  125
  130
  136
  143
  106
Sample Input II
  10
  146
  80
  80
  190
  151
  199
  193
  144
  153
  101
Sample Output I
  535
Sample Output II
  1185


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

www.contester.ru