数值统计 HDU - 2008
2017-04-12 17:26
218 查看
问题类型:一次性AC。
03pie’s solution for [HDU-2008]:
题目链接
03pie’s solution for [HDU-2008]:
题目链接
#include<iostream> using namespace std; const int maxn=100+5; int main() { int n; while(cin>>n&&n){ int a=0,b=0,c=0; double x; while(n--){ cin>>x; if(x<0) a++; else if(x>0) c++; else b++; } cout<<a<<" "<<b<<" "<<c<<endl; } return 0; }
相关文章推荐
- hdu_2008_数值统计
- hdu 2008 数值统计
- HDU 2008 数值统计
- hdu 2008 数值统计
- HDU 2008 - 数值统计
- HDU 2008 数值统计
- [hdu 2008] 数值统计
- HDU——2008 数值统计
- hdu 2008 数值统计
- HDU 2008 数值统计
- hdu 2008 数值统计
- hdu2008——数值统计
- hdu 2008 数值统计
- HDU 2008 数值统计
- HDU_2008——数值统计
- (hdu 简单题 128道)hdu 2008 数值统计(统计一列数中正数、负数、0的个数)
- HDU 2008 数值统计
- hdu 2008 数值统计
- HDU 2008 数值统计(大水题)
- HDU 2008 数值统计