标签:des style java color os strong
6 0 1 2 3 -1 0 5 1 2 3 4 0.5 0
1 2 3 0 0 5
#include<stdio.h> int main() { int n; while(scanf("%d",&n),n) { int i,j,a=0,b=0,c=0; double s; for(i=0;i<n;i++) { scanf("%lf",&s); { if(s<0) a++; else if(s==0) b++; else if(s>0) c++; } } printf("%d %d %d",a,b,c); printf("\n"); } return 0; }
标签:des style java color os strong
原文地址:http://blog.csdn.net/qq_16767427/article/details/38045235