Number of negatives
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 how many of these integers are negative.
Input
A sequence of integers, with each integer on a separate line.
Output
A single integer representing the count of negative numbers in the sequence.
Examples
Input #1
Answer #1
Submissions 9K
Acceptance rate 53%