hdu2006

来源:互联网 发布:哉佩利敖光线数据 编辑:程序博客网 时间:2024/06/14 06:27
 #include<iostream>
using namespace std;
int main()
{
 int n,t;
 while(cin>>n , n)
 {
  int  count1=0 , count2=0 , count3=0;
  while( n-- )
  {
   cin>>t;
   if( t > 0 )
   {
    count1++;
   }
   if( t == 0 )
   {
    count2++;
   }
   else
   {
    count3++;
   }
  }
  cout<<count1<<count2<<count3<<endl;
 }
 return 0;
}
原创粉丝点击