BestCoder Round #54 (div.2) HDU5427 A problem of sorting
来源:互联网 发布:淘宝飞机杯哪家好 编辑:程序博客网 时间:2024/06/06 04:07
A problem of sorting
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1052 Accepted Submission(s): 441
Problem Description
There are many people's name and birth in a list.Your task is to print the name from young to old.(There is no pair of two has the same age.)
Input
First line contains a single integer T≤100 which denotes the number of test cases.
For each test case, there is an positive integern(1≤n≤100) which denotes the number of people,and next n lines,each line has a name and a birth's year(1900-2015) separated by one space.
The length of name is positive and not larger than100 .Notice name only contain letter(s),digit(s) and space(s).
For each test case, there is an positive integer
The length of name is positive and not larger than
Output
For each case, output n lines.
Sample Input
21FancyCoder 19962FancyCoder 1996xyz111 1997
Sample Output
FancyCoderxyz111FancyCoder
Source
BestCoder Round #54 (div.2)
出题人:选择任意喜欢的排序方法即可。注意名字中可能有空格。
0 0
- BestCoder Round #54 (div.2) HDU5427 A problem of sorting
- A problem of sorting----(BestCoder Round #54 (div.2))
- HDU 5427 A problem of sorting(字符串处理+排序)——BestCoder Round #54(div.2)
- BestCoder Round #54 (div.2) HDOJ 5427 A problem of sorting(模拟)
- BestCoder Round #54 (div.2) HDU 5427 A problem of sorting(1001)
- hdu5427(BestCoder Round #54 (div.2)1001题)
- BestCoder Round #54 (div.2)(hdu5427,hdu5428,hdu5429,hdu5430)
- Bestcoder#54 A problem of sorting
- HDU5427 - A problem of sorting (简单题)
- BestCoder Round #54 (div.2)
- A problem of sorting
- BestCoder Round #51 (div.2) A
- BestCoder Round #59 (div.2)A.SDOI
- BestCoder Round #77 (div.2)(A)
- BestCoder Round #76 (div.2)A
- BestCoder Round #78 (div.2) A B
- BestCoder Round #81 (div.2)A
- BestCoder Round #82 (div.2) A B
- android二维码、条形码分分钟秒杀
- 算法
- 第112讲:为什么会有第一代大数据技术Hadoop和第二代大数据技术Spark?学习笔记
- 给一个不带头结点的单链表,写出将链表倒置的算法
- Java 理论与实践: 描绘线程安全性
- BestCoder Round #54 (div.2) HDU5427 A problem of sorting
- FC时代最经典的游戏系列《热血系列》的回归
- <meta http-equiv="X-UA-Compatible" content="IE=Edge">
- Codeforces 584E Anton and Ira
- android studio 报Error:failed to find Build Tools revision 23.0.0 rc2
- 2.10. weed-fs
- 13.Swift CoreData
- 希尔排序
- mongoDB应用(sql语句)