Anzahl der geraden Zahlen vor 0

Gegeben ist ein Strom von Ganzzahlen. Das Programm soll die Anzahl der geraden Ganzzahlen ausgeben, bevor die erste 0 erreicht wird.

Eingabe

Ausgabe

2
6
1
9
43
88
9
0
4

3

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue