1 #include<stdio.h>
 2 int main()
 3 {
 4     int a,b,c,i,n;
 5     double x;
 6     while(scanf("%d",&n),n)
 7     {
 8         a=b=c=0;
 9         for(i=0;i<n;i++)
10          {
11             scanf("%lf",&x);
12             if(x<0)  a++;
13             else if(x>0) c++;
14             else b++;
15           }
16         printf("%d %d %d\n",a,b,c);
17     }
18     return 0;
19 }
20         

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-03-03
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2022-02-09
猜你喜欢
  • 2022-12-23
  • 2021-07-08
  • 2021-10-30
  • 2021-09-08
  • 2022-01-22
  • 2022-01-01
  • 2022-12-23
相关资源
相似解决方案