Sum of the sequence
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
The program processes a sequence of integers that ends with the number 0. Your task is to calculate the sum of this sequence, not including the final zero.
Input
A series of integers, each on a separate line.
Output
A single integer representing the sum of the sequence.
Examples
Input #1
Answer #1
Submissions 12K
Acceptance rate 53%