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

Разделы > Арифметика > задача:


50436 - Pocket Money

Гость
• Обсуждение задачи (1)

Задачи раздела

• 50293 - Sum of odd numbers from ...
• 50401 - Sum of Odd Numbers
• 50365 - Sum of the numbers from a...
• 50390 - Total Salary Paid
• 50400 - nth Row rth Element of a Table
• 50292 - Average of 4 Marks
• 50462 - Class Average (3 Grades)
• 50439 - Telephone Calls
• 50436 - Pocket Money
• 50288 - Even numbers in even posit...
• 50299 - Median
• 50571 - Numrat Armstrong
• 50572 - Numrat Palindrome
• 50582 - Numri i shifrave
• 50583 - Numri ma te madhe nga 3 ...
• 50585 - Prodhimi i brendshem
• 50587 - Shnderrimi i numrit ne nje s...

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

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

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan. Сложность Альфа

Pocket Money

Albi is a primary school student. His father gives pocket money every week. His pocket money is calculated accourding to the number pages he reads everyday. To encourage him to read more his father uses the following calculation.

  • if total pages is less than 70: 100 lek
  • if total pages is between 70 and 200: 2 lek per page
  • if total pages is more than 200: 400 Lek + 4 lek for every extra pages

Question:
Write a program that is going to get the number of pages Albi read in this week and calculate the Pocket money for Albi.

Input specification
You will be given 6 integer numbers where each of them can be between 0 and 50.

Output specification
Calculate the amount of pocket money for Albi

Sample Input I
  1
  38
  36
  24
  17
  20
Sample Input II
  33
  38
  34
  40
  34
  38
Sample Output I
  272
Sample Output II
  468


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

www.contester.ru