Unknown Language Round 1

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
64 Unknown Language Round 1 FINISHED False 9000 478101623 Feb. 21, 2011, 4 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 122 ) H Table Bowling PROGRAMMING *special sortings 2300

Table bowling tournament participant completed the competition according to the given final standings table. The table is given as a sequence of lines, each line has a format "name score". Your task is to prepare another table consisting of lines in the form "place name". Sort participant by score (desc.) and by the name lexicographically in the case of a tie. Places are numerated from 1. If more than one participant has some score, all of them share the places and you should output something like "12-14 john". Please, look into the samples for clarification. The first line contains n ( 1 ≤ n ≤ 100 ) — the number of rows in the table. Following n lines contain the given table. Each line has the form "name score", where "name" is a sequence of lowercase Latin letters, and "score" — is an integer number between 0 and 1000, inclusive. All the names are distinct. The length of each name is between 1 and 10 characters, inclusive. There is single space between the name and the score in each line. Print the required table. Look at the sample outputs for clarifications.

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
3452570 vjudge1 H April 2, 2013, 11:31 a.m. OK Tcl TESTS 20 31 1945600 2300
1708120 tmt514 H May 21, 2012, 2:46 p.m. OK Tcl TESTS 20 50 2457600 2300
1374004 ignored H March 17, 2012, 8:25 p.m. OK Tcl TESTS 20 50 2457600 2300
1356837 Shik H March 14, 2012, 11:26 a.m. OK Tcl TESTS 20 50 2457600 2300
1044112 ashi009 H Jan. 13, 2012, 5:59 p.m. OK Tcl TESTS 20 50 2457600 2300
669388 ZhouYuChen H Sept. 5, 2011, 1:35 p.m. OK Tcl TESTS 20 50 2457600 2300
598084 susl H Aug. 8, 2011, 8:14 a.m. OK Tcl TESTS 20 50 2457600 2300
568986 KirarinSnow H July 29, 2011, 3:07 a.m. OK Tcl TESTS 20 50 2457600 2300
526696 S.Yesipenko H July 3, 2011, 9:27 a.m. OK Tcl TESTS 20 50 2457600 2300
313975 grey_wind H March 2, 2011, 11:46 a.m. OK Tcl TESTS 20 50 2457600 2300

remove filters

Back to search problems