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

文件名称:Debug

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2015-03-23
  • 文件大小:
    373.51kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

测试输入包含若干测试用例。每个测试用例的第1行包含两个整数 N (N<=100000) 和 C,其中 N 是纪录的条数,C 是指定排序的列号。以下有N行,每行包含一条学生纪录。每条学生纪录由学号(6位数字,同组测试中没有重复的学号)、姓名(不超过8位且不包含空格的字符串)、成绩(闭区间[0, 100]内的整数)组成,每个项目间用1个空格隔开。当读到 N=0 时,全部输入结束,相应的结果不要输出。

对每个测试用例,首先输出1行“Case i:”,其中 i 是测试用例的编号(从1开始)。随后在 N 行中输出按要求排序后的结果,即:当 C=1 时,按学号递增排序;当 C=2时,按姓名的非递减字典序排序;当 C=3

时,按成绩的非递减排序。当若干学生具有相同姓名或者相同成绩时,则按他们的学号递增排序。-Test input contains several test cases. Each row of the first test case contains two integers N (N < = 100000) and C, where N is the number of records, C is the column number to specify sorting. Here are N lines, each containing a student record. Each student record by student number (6 digits, with no duplication of tests in school number), name (no more than eight strings do not contain spaces), performance (closed interval [0, 100] integer within ), separated by a space between each item. When read N = 0 when all the input end, the corresponding results do not output. For each test case, output a first line of " Case i:" , where i is the number of test cases (starting at 1). Then output the results in N rows sorted according to the requirements, namely: When C = 1, according to school No. Ascending when C = 2, according to the names of non-decreasing lexicographical ordering when C = 3, press performance The non-decreasing order. When the number of students with the same
(系统自动生成,下载前可以参看下载内容)

下载文件列表

Debug/
Debug/Cpp1.exe
Debug/Cpp1.ilk
Debug/Cpp1.obj
Debug/Cpp1.pch
Debug/Cpp1.pdb
Debug/vc60.idb
Debug/vc60.pdb

相关说明

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

相关评论

暂无评论内容.

发表评论

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