HDU/2008/main.c
Saturneric 0525ffad24 Add.
2020-09-01 00:48:58 +08:00

20 lines
357 B
C

#include <stdio.h>
int main(void){
int numbers = 0;
while(scanf("%d",&numbers) == 1){
if(!numbers) continue;
int temp = 0, a = 0, b = 0, c = 0;
double input = 0;
while(temp++ < numbers){
scanf("%lf",&input);
if(input < 0) a += 1;
else if(input == 0) b += 1;
else c += 1;
}
printf("%d %d %d\n",a,b,c);
getchar();
}
return 0;
}