NCPC26 Practise 2

This commit is contained in:
2026-04-17 18:28:49 +02:00
parent 39396cedd3
commit ef5f38d1a5
29 changed files with 386 additions and 877 deletions
+20
View File
@@ -0,0 +1,20 @@
//
// 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);
}
}