Cold-puter Science
Question
Solution
Idea
This is a give-away question. Nothing to talk about.
Code
https://github.com/mendax1234/Coding-Problems/blob/main/kattis/cold/cold.c
#include <stdio.h>
int main()
{
int n;
scanf("%d", &n);
int minus_zero = 0;
for (int i = 0; i < n; i += 1)
{
int deg;
scanf("%d", °);
if (deg < 0)
{
minus_zero += 1;
}
}
printf("%d\n", minus_zero);
}
Last updated