| Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб. Question by Ibrahim Mesecan.
 
 
   Print OfficeThe photocopy office at the university 
applies the following price list for mass 
print or photocopies.
 
Up to 10 pages: 5 leke per pageBetween 11 and 20: 3 leke per pageAbove 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 
 
46
 12
 30
 8
 
 | Sample Output 
 
166 
 |   Explanation: 
 
6 pages from 5 leke: total 30 leke12 pages: 3 leke per page: 3630 pages: 30 pages from 2 leke: 608 pages, total 40 
 Для отправки решений необходимо выполнить вход.
 
 
 |