HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


110. 50288 - Even numbers in even positions

Guest
• Discussion of problem (1)

Volume problems

• 022. 50366 - Student Averages (2 G...
• 023. 50437 - Age Labeling
• 026. 50399 - Mobile Base Station
• 040. 50335 - Five Math Operators
• 045. 50462 - Class Average (3 Gra...
• 074. 50396 - Cinema Tickets - 1
• 080. 50248 - Power of two
• 090. 50456 - nth Digit of a Number
• 110. 50288 - Even numbers in e...
• 115. 50425 - Calculating Weekly Pay
• 120. 50426 - Calculating Sales
• 50312 - Sales Bar Chart
• 50313 - Pattern Displays
• 50316 - Population Bar Chart
• 50336 - Buying Carpets
• 50295 - Weighted Average
• 003. 50358 - Series of Odd Numbers

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

You are given a sequence of numbers. Count the even numbers which are also in even positions.
Please note that the first number is in the first position.

Input
Introduce the first number N , and then N numbers - the terms of the sequence.
Output
Display the number of even numbers on even positions in the sequence.

Input Output
5
1 2 4 5 6
1

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

www.contester.ru