The sum of positive
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
The program processes a sequence of integers that concludes with the number 0. Your task is to calculate the sum of all positive numbers in this sequence, excluding the final zero.
Input
A sequence of integers, with each number provided on a separate line.
Output
A single integer representing the sum of the positive numbers in the sequence.
Examples
Input #1
Answer #1
Submissions 8K
Acceptance rate 57%