HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50401 - Sum of Odd Numbers

Guest
• Review clarifications (1)

Section problems

• 50392 - How much space
• 50394 - Water Bills
• 50651 - Largest power of two
• 50297 - Divisible By Five
• 50332 - Variance of a series
• 50398 - Sum of kth Anti-diagonal
• 50400 - nth Row rth Element of a Table
• 50330 - Find the average of n numbers
• 50401 - Sum of Odd Numbers
• 50369 - Base Conversion
• 50407 - Missing Number
• 50336 - Buying Carpets
• 50338 - Convert Into Decimal
• 50404 - Sum of Self Powers
• 50295 - Weighted Average
• 50343 - The number of Ending Zero...
• 50296 - Total Discount Rate

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.
Prepared by Ibrahim Mesecan.

Sum of Odd Numbers

Question:
You will be given n numbers. Calculate the sum of odd numbers.

Input specification
You will be first, given an integer (n). Then, the next line will contain n integers where 1 ≤ n ≤ 20000 and each number is between -30000 and 30000.

Output specification
Show just one integer number: the sum of odd numbers.

Sample Input I   
  10
  1 -2 3 4 5 8 -7 8 10 9   
Sample Output I   
  11


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

www.contester.ru