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

建议使用的浏览器:

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

5162:Jump and Jump...

题目描述
There are \(n\) kids and they want to know who can jump the farthest. For each kid, he can jump three times and the distance he jumps is maximum distance amount all the three jump. For example, if the distance of each jump is (10, 30, 20), then the farthest distance he can jump is 30. Given the distance for each jump of the kids, you should find the rank of each kid.
输入解释
There are multiple test cases. The first line of input contains an integer \(T\ (1 \le T \le 100)\), indicating the number of test cases. For each test case: The first line contains an integer \(n \ (2 \le n \le 3)\), indicating the number of kids. For the next \(n\) lines, each line contains three integers \(a_i, b_i\) and \(c_i\) (\(1 \le a_i, b_i, c_i, \le 300\)), indicating the distance for each jump of the \(i\)-th kid. It's guaranteed that the final rank of each kid won't be the same (ie. the farthest distance each kid can jump won't be the same).
输出解释
For each test case, you should output a single line contain \(n\) integers, separated by one space. The \(i\)-th integer indicating the rank of \(i\)-th kid.
输入样例
2
3
10 10 10
10 20 30
10 10 20
2
3 4 1
1 2 1
输出样例
3 1 2
1 2
提示
For the first case, the farthest distance each kid can jump is 10, 30 and 20. So the rank is 3, 1, 2.
来自杭电HDUOJ的附加信息
Recommend hujie

该题目是Virtual Judge题目,来自 杭电HDUOJ

题目来源 BestCoder Round #27

源链接: HDU-5162

最后修改于 2020-10-25T23:20:19+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
2000/1000MS(Java/Others) 32768/32768K(Java/Others)