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

Турниры > CEN111 Homeworks 2013-2015 > задача:


15-FallPr-30. 50810 - Print Office

CEN111 Homeworks 2013-2015

Старт: 10.янв.2015 в 10:00:00
Финиш: 10.янв.2015 в 15:00:00
Турнир завершён!
• Турнирная таблица

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

Задачи турнира

• 15-Fall-01. 50806 - TVSH
• 15-FallHW-1. 50820 - Post Office
• 15-FallHW-2. 50821 - Derivative of ...
• 15-FallHW-3. 50822 - Linked List
• 15-FallHW-4. 50823 - Secret Number
• 15-FallHW-5. 50824 - Sum of Group...
• 15-FallHW-6. 50825 - Drawing Polygon
• 15-FallPr-10. 50808 - Total Distance...
• 15-FallPr-30. 50810 - Print Office
• 15-FallPr-50. 50812 - Total Discount...
• 15-FallPr-70. 50814 - Buying Books f...
• 15-FallPr-80. 50815 - Breaking the ...
• 15-FallRE-10. 50853 - Parking Place
• 15-FallRE-20. 50854 - Area of Trian...

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

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

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
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