#67. 统计数组中的偶数
统计数组中的偶数
Count Even Numbers
Background
Congcong is currently learning about arrays and basic mathematical operations. He encountered a problem where he needs to find the number of even integers in a given array.
Problem Description
Return the number of even integers in the given array. Note: the % "mod" operator computes the remainder, e.g. is .
Input Format
Input is given from standard input in the following format.
An array of integers, with elements separated by spaces.
Output Format
Output is printed to standard output in the following format.
An integer, representing the count of even numbers in the array.
Sample
[2 1 2 3 4]
3
[2 2 0]
3
[1 3 5]
0
Sample Explanation
For the first sample input [2 1 2 3 4], there are three even numbers: . Thus, the output is .
Constraints
Time limit: second, Memory limit: KiB for each test case.