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. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 94 ) | I | Sort the Table | PROGRAMMING | *special sortings | 2500 |
You are given a rectangular table containing words. Each of its columns has its own name. You are also given the list of rules of sorting in form " FIELD_NAME SORT_ORDER ", where SORT_ORDER is either ASC (nondescending order) or DESC (nonascending order). Rules in the list are separated by a single comma with a single space. You have to sort rows of the table primarily by the first rule, then, in case of a tie sort by the second rule. And so on. If two rows are equal in terms of every rule, then preserve their relative order. You can assume that each element of the table has type "string", so you have to use lexicographic comparison. The first line contains column names. The second line contains the list of rules. The rest of the input data contains the table. All the words and column names are separated by single spaces. The number of rows and columns is between 1 and 100, inclusive. Names of columns and elements are strings containing only uppercase and lowercase Latin letters and digits, having the length between 1 and 10, inclusive. Print the table after the sorting. |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 300755 | fura2 | I | Feb. 23, 2011, 1:22 p.m. | OK | Tcl | TESTS | 11 | 30 | 2867200 | 2500 | |
| 297828 | alexander-nsk94 | I | Feb. 22, 2011, 4:48 p.m. | OK | Tcl | TESTS | 11 | 30 | 2867200 | 2500 | |
| 295273 | Vintik | I | Feb. 21, 2011, 5:56 p.m. | OK | Tcl | TESTS | 11 | 30 | 2867200 | 2500 | |
| 294570 | nise_nabe | I | Feb. 21, 2011, 4:58 p.m. | OK | Tcl | TESTS | 11 | 30 | 2867200 | 2500 | |
| 1374006 | ignored | I | March 17, 2012, 8:26 p.m. | OK | Tcl | TESTS | 20 | 30 | 2969600 | 2500 | |
| 1044149 | ashi009 | I | Jan. 13, 2012, 6:24 p.m. | OK | Tcl | TESTS | 11 | 30 | 2969600 | 2500 | |
| 669481 | ZhouYuChen | I | Sept. 5, 2011, 2:24 p.m. | OK | Tcl | TESTS | 11 | 30 | 2969600 | 2500 | |
| 296164 | ChuYuxun | I | Feb. 22, 2011, 10:32 a.m. | OK | Tcl | TESTS | 11 | 30 | 2969600 | 2500 | |
| 295732 | -dp- | I | Feb. 21, 2011, 7:45 p.m. | OK | Tcl | TESTS | 11 | 30 | 2969600 | 2500 | |
| 295459 | watashi | I | Feb. 21, 2011, 6:14 p.m. | OK | Tcl | TESTS | 11 | 30 | 2969600 | 2500 |
Back to search problems