CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 Windows编程 其他小程序

文件名称: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
(系统自动生成,下载前可以参看下载内容)

下载文件列表

1121.cpp

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com