HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


065. 50436 - Pocket Money

Guest
• Discussion of problem (1)

Volume problems

• 048. 50403 - Number of Chairs
• 050. 50568 - Body Mass Index Calc...
• 052. 50503 - Welcome Andi - 2
• 053. 50501 - The Highest Average
• 055. 50355 - Bills of City Water Co...
• 060. 50583 - Max of 3 numbers
• 062. 50402 - Hello World!
• 063. 50547 - Close Pair
• 065. 50436 - Pocket Money
• 068. 50581 - The roots of a quadrati...
• 070. 50439 - Telephone Calls
• 080. 50478 - Letter Grades
• 090. 50422 - Area and Perimeter of...
• 100. 50532 - Close City
• 120. 50511 - Class Average
• 130. 50416 - Placing Dominoes on ...
• 140. 50417 - Fun Fair

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. Difficulty Alpha

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