21 lines
363 B
C++
21 lines
363 B
C++
//
|
|
// Created by zacharias on 2026-04-17.
|
|
//
|
|
|
|
#include <cstdio>
|
|
|
|
int main() {
|
|
int size = 0;
|
|
while (scanf("%d", &size) == 1) {
|
|
int total = 0;
|
|
for (int i = 0; i < size; i++) {
|
|
int n = 0;
|
|
scanf("%d", &n);
|
|
if (n < 0) {
|
|
total++;
|
|
}
|
|
}
|
|
printf("%d\n", total);
|
|
}
|
|
}
|