HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > Lab7 - CEN ECE > problem:


15-FallPr-30. 50810 - Print Office

Lab7 - CEN ECE

Start: Nov.14.2023 at 12:11:01 AM
Finish: Nov.21.2023 at 11:11:01 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (1)

Contest problems

• 50387 - Passengers in the Train
• 50293 - Sum of odd numbers from ...
• 50452 - Multiplication Table
• 1. 50336 - Buying Carpets
• 15-FallPr-30. 50810 - Print Office
• 2012-10-01. 50573 - Count and Sum
• 2014-04-20. 50548 - Albanian Airlines

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.

Print Office

The photocopy office at the university applies the following price list for mass print or photocopies.

  • Up to 10 pages: 5 leke per page
  • Between 11 and 20: 3 leke per page
  • Above 20 pages: 2 leke per page

Question: Read the number of pages for n prints and calculate the total price.

Input specification
First you will be given the number of prints (n) where n is between 0 and 5000. Then, in the following n lines you will be given an integer which is between 0 and 1000.

Output specification
Show one integer: the total amount calculated.

Sample Input
4
6
12
30
8
Sample Output
166

Explanation:

  • 6 pages from 5 leke: total 30 leke
  • 12 pages: 3 leke per page: 36
  • 30 pages: 30 pages from 2 leke: 60
  • 8 pages, total 40



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

www.contester.ru