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

Сборники > Фёдор Меньшиков. Тренировки > задача:


50810 - Print Office

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

Задачи сборника

• 51116 - The Star Triangle
• 50896 - Sum of Even Numbers
• 50815 - Breaking the Bunker
• 50899 - How Many Years
• 50806 - TVSH
• 51078 - Max trade
• 50820 - Post Office
• 50807 - Euro to Leke
• 50810 - Print Office
• 50952 - Derby Tirana
• 50871 - Harmonic Mean
• 50859 - Low performance
• 50508 - The Biggest Area
• 51077 - Grades Histogram
• 50528 - Rock-Scissors-Paper
• 50744 - The Smallest Perimeter
• 50808 - Total Distance Traveled

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

Если у вас есть предложения или пожелания по работе 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