标签:des style blog color io java strong for 数据
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 54644 Accepted Submission(s):
27973
1 #include<cstdio> 2 int main() 3 { 4 int n,a,b,c; 5 6 while(scanf("%d",&n)==1) 7 { 8 if(n==0)return 0; 9 a=b=c=0; 10 for(int i=0;i<n;i++) 11 { 12 float m; 13 scanf("%f",&m); 14 if(m<0)++a; 15 else if(m==0)++b; 16 else ++c; 17 } 18 printf("%d %d %d\n",a,b,c); 19 } 20 return 0; 21 }
标签:des style blog color io java strong for 数据
原文地址:http://www.cnblogs.com/The-courage-that-year/p/3989795.html