当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

2070:Filling Out the Team

题目描述
Over the years, the people of the great city of Pittsburgh have repeatedly demonstrated a collective expertise at football second to none. Recently a spy has discovered the true source of the city's football power-a wizard known only as "Myron," who is infallible at selecting the proper position at which each player will excel.

Now that you know the source of Pittsburgh's wisdom, you are determined to provide your school's football team with a computer program that matches the wisdom of "Myron." You have consulted with the best football minds you can find, and they have dispensed their wisdom on the slowest speed, minimum weight, and minimum strength required to play each position.

Using this knowledge, you will develop a program that reads in several players physical attributes and outputs what position(s) they are able to play.
输入解释
Each line of the input file will list the attributes for one player:
< speed > < weight > < strength >
Each number will be a real-valued number. The file will end with a line reading "0 0 0"
输出解释
For each player, you will output one line listing the positions that player can play. A player can play a position if each of their attributes is greater or equal to the minimum for weight and strength, and less than or equal to the slowest speed. If a player can play multiple positions, output them in the order listed above, separated by whitespace. You may leave an extra space at the end of the line. If a player can play no positions, write "No positions" on the line.
输入样例
4.4 180 200
5.5 350 700
4.4 205 350
5.2 210 500
0 0 0
输出样例
Wide Receiver
Lineman
Wide Receiver Quarterback
No positions

该题目是Virtual Judge题目,来自 北京大学POJ

题目来源 Mid-Atlantic 2004

源链接: POJ-2070

最后修改于 2020-10-29T06:22:27+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
1000 30000