Number of even numbers before 0
Given a stream of integers, the program has to print the number of even integers before reaching the first 0.
Input | Output |
---|---|
2 | 3 |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB
Given a stream of integers, the program has to print the number of even integers before reaching the first 0.
Input | Output |
---|---|
2 | 3 |
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB