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;
}
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;
}
- hdu2006
- HDU2006
- HDU2006
- HDU2006
- HDU2006
- hdu2006解题报告
- hdu2006求奇数的乘积
- hdu2006求奇数的乘积
- HDU2006 求奇数的乘积
- HDU2006求奇数的乘积
- 求奇数的乘积(HDU2006)
- HDU2006 求奇数的乘积
- HDU2006 求奇数的乘积
- hdu2006 求奇数的乘积
- HDU2006 求奇数的乘积
- hdu2006——求奇数的乘积
- hdu2006——求奇数的乘积
- (解题报告)HDU2006---求奇数的乘积
- 实用算法实现-第 9 篇RMQ问题
- hdustep.1.3
- 显示器黑屏的原因解析及解决方法
- android存储方式ContentProvider
- hdu2162
- hdu2006
- C++ Primer 第三章 标准库类型 笔记
- hdu2009
- About const
- Eclipse vs NetBeans for PHP Development
- hdu2011
- About volatile
- hdu2015
- Ubuntu把关闭窗口按键放到右边的详解