HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50007 - Even numbers in even positions

Section problems

• 50268 - Download Percentage
• 50269 - Isosceles Triangles
• 50270 - Buy Three Items
• 50271 - Number of Right Triangles
• 50272 - Convert from Hex to Dec
• 50273 - Triangle Property
• 50274 - Sum of the series
• 50005 - Power of two
• 50007 - Even numbers in even ...
• 50008 - Sum of odd numbers from ...
• 50012 - Number Pattern
• 50013 - John's Tasks
• 50023 - Missing Number
• 50031 - Separate Into Digits
• 50047 - Sum of the numbers from a...
• 50060 - Total Salary Paid
• 50069 - Sum 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