Length of the sequence
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
The input for the program is a sequence of integers that concludes with the number 0. Your task is to determine the length of this sequence, not counting the final zero.
Input
A sequence of integers, with each number on a separate line.
Output
A single integer representing the length of the sequence.
Examples
Input #1
Answer #1
Submissions 10K
Acceptance rate 56%