文件名称:1121
-
所属分类:
- 标签属性:
- 上传时间:2014-07-14
-
文件大小:874byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
ACM1121题:MSTC里有好多有特长的人, 有些是力量型人才,有些是智力型人才,有些是敏捷型的。
现在告诉你 N 个人, 每个人的力量,智力,敏捷的值, 和每个人的编号。
题目要求你将 N 个部员 按照力量 从大到小 排序, 如果两个部员的力量相同, 则按照 智力 值从大到小排序, 如果
两个部员力量, 智力 都一样,则按照 敏捷从 小 到 大排序。 测试数据保证没有两个部员的 力量, 智力, 敏捷 全部相同。
Input第一行 N :表示有 N 个同学。 ( 1 <= N <= 500 )
接下来 N 行,
第 i 行有 3 个值, ai, bi, ci a 代表 力量, b 代表智力, c 代表敏捷。 编号为 i
( i 是部员的编号, 1 <= i <= N )
Output输出 N 行:
将排序后的部员编号输出。
每行一个编号Sample Input4
2 2 3
2 3 4
4 8 9
2 2 2Sample Output3
2
4
1-ACM1121 Question: MSTC there are a lot of people with skills, talents and some power, some are intellectual talent, some are agile type. Now tell you N individuals, each person' s strength, intelligence, agility value, and each person' s number. Topics will ask you who follow the power ministries N descending order, if the power of the two members of the same department, follow the descending order of intelligence value, if two members of the Ministry of power, intelligence all the same, in accordance with agile childhood to large order. Test data to ensure that no member of the power of the two departments, intelligence, agility all the same. Input The first line of N: N expressed classmates. (1 < = N < = 500) in the next row N, the first row has three values i, ai, bi, ci a representative of power, b representative of intelligence, c Representative agile. Number i (i is the number of member portions, 1 < = i < = N) Output Output N line: the number output u
现在告诉你 N 个人, 每个人的力量,智力,敏捷的值, 和每个人的编号。
题目要求你将 N 个部员 按照力量 从大到小 排序, 如果两个部员的力量相同, 则按照 智力 值从大到小排序, 如果
两个部员力量, 智力 都一样,则按照 敏捷从 小 到 大排序。 测试数据保证没有两个部员的 力量, 智力, 敏捷 全部相同。
Input第一行 N :表示有 N 个同学。 ( 1 <= N <= 500 )
接下来 N 行,
第 i 行有 3 个值, ai, bi, ci a 代表 力量, b 代表智力, c 代表敏捷。 编号为 i
( i 是部员的编号, 1 <= i <= N )
Output输出 N 行:
将排序后的部员编号输出。
每行一个编号Sample Input4
2 2 3
2 3 4
4 8 9
2 2 2Sample Output3
2
4
1-ACM1121 Question: MSTC there are a lot of people with skills, talents and some power, some are intellectual talent, some are agile type. Now tell you N individuals, each person' s strength, intelligence, agility value, and each person' s number. Topics will ask you who follow the power ministries N descending order, if the power of the two members of the same department, follow the descending order of intelligence value, if two members of the Ministry of power, intelligence all the same, in accordance with agile childhood to large order. Test data to ensure that no member of the power of the two departments, intelligence, agility all the same. Input The first line of N: N expressed classmates. (1 < = N < = 500) in the next row N, the first row has three values i, ai, bi, ci a representative of power, b representative of intelligence, c Representative agile. Number i (i is the number of member portions, 1 < = i < = N) Output Output N line: the number output u
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1121.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.