#include<iostream>
//#include<cmath>
using namespace std;
int main()
{
int n,c1,c2,c3;
double x;
while( cin >> n && n != 0)
{
c1 = c2 = c3 = 0;
for( int i = 0;i < n;i ++)
{
cin >> x;
if( x < 0)
{
c1 ++;
}
else if(x > 0)
{
c3 ++;
}
else c2 ++;
}
cout << c1 <<" " << c2 <<" " << c3 << endl;
}
system("pause");
}
hdoj2008
最新推荐文章于 2021-03-05 10:28:51 发布