poj 2070 Filling Out the Team
来源:互联网 发布:caffe怎么读 编辑:程序博客网 时间:2024/05/21 14:00
#include "iostream"#include "string"using namespace std;struct Info{ string pos; double speed; int weight; int strength;};int main(){ bool flag; double sp; int w, s, i; Info info[3]; info[0].pos = "Wide Receiver", info[0].speed = 4.5, info[0].weight = 150, info[0].strength = 200; info[1].pos = "Lineman", info[1].speed = 6.0, info[1].weight = 300, info[1].strength = 500; info[2].pos = "Quarterback", info[2].speed = 5.0, info[2].weight = 200, info[2].strength = 300; while (cin >> sp >> w >> s) { flag = false; if (sp ==0 && w == 0 && s == 0) break; for (i = 0; i < 3; i++) { if (info[i].speed >= sp && info[i].weight <= w && info[i].strength <= s) { if (flag) cout << " "; cout << info[i].pos; flag = true; } } if (!flag) cout << "No positions" << endl; else cout << endl; } system("pause");}
- poj 2070 Filling Out the Team
- poj 2070 Filling Out the Team
- POJ 2070 Filling Out the Team(水题)
- POJ 2070 Filling Out the Team G++
- POJ 2070 Filling Out the Team(水~)
- poj2070 Filling Out the Team
- zoj2321 Filling Out the Team
- POJ2070 Filling Out the Team
- zoj 2321 Filling Out the Team
- zoj2321 Filling Out the Team水题
- ZOJ 2321 Filling Out the Team
- zoj 2321 Filling Out the Team
- POJ2070浅析------Filling Out the Team
- HOJ 1746 Filling Out the Team
- ZOJ 2321 Filling Out the Team
- TOJ 1825.Filling Out the Team
- POJ 2070 Filling Out the Team(我的水题之路——double比较)
- instances) and similar IP handles (that may additionally report that one particular person is filling out the prospect kind vari
- 哈夫曼编码
- 深度探索C++对象模型之:成员函数语义学--静态成员函数
- UIApplication对象及其代理UIApplicationDelegate[转]
- C++ primer第二次阅读学习笔记(第5章)
- 显卡帝教你读懂GPU架构图 轻松做达人
- poj 2070 Filling Out the Team
- VS2008解决方案添加现有项目.
- 解答:fork()函数执行后,子进程先执行的原因。
- C++ new的用法
- Hibernate OGM (Object/Grid Mapper) - 1
- GDI高速图像绘制
- Linux 内存管理 解析
- 一副很有寓意的图
- 子数组的最大乘积