数值统计
#include <stdio.h>
int main()
{
float i;
int n,m,sum1,sum2,sum3;
while(scanf("%d",&n)!=EOF)
{if(n==0) break;
sum1=0; sum2=0;sum3=0;
while(n--)
{
scanf("%f",&i);
if(i>0)
{m=1;
sum1=sum1+m;
}
else if(i==0)
{
m=1;
sum2=sum2+m;
}
else{
m=1;
sum3=sum3+m;
}
}
printf("%d %d %d\n",sum3,sum2,sum1);
}
return 0;
}