题目
![题目](https://img-blog.csdnimg.cn/20200201123237151.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM3Nzc0Mzk5,size_16,color_FFFFFF,t_70)
题目链接
代码
#include <iostream>
int main(int argc, char** argv) {
int n;
while(scanf("%d",&n)!=EOF,n) {
int a=0,b=0,c=0;
double m;
for(int i=0;i<n;i++){
scanf("%lf",&m);
if(m>0){
a++;
}else if(m<0){
c++;
}else {
b++;
}
}
printf("%d %d %d\n",c,b,a);
}
return 0;
}