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 |
|---|---|---|---|---|---|---|
| 683 | Surprise Language Round 8 | FINISHED | False | 9000 | 310312823 | June 16, 2016, 4 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 337 ) | B | The Teacher of Physical Education | PROGRAMMING | *special | 1600 |
N pupils came to Physical Education lesson. We know the name and the height of each pupil. Your task is to help the teacher of Physical Education to line up all pupils in non-decreasing order of their heights. The first line contains the positive integer n ( 1 ≤ n ≤ 5000 ) — the number of pupils. The next n lines contain the pupils' description. In the i -th line there is pupil's name name i (a non-empty string which consists of uppercase and lowercase Latin letters, the length does not exceed five) and pupil's height x i ( 130 ≤ x i ≤ 215 ). Some pupils can have the same name. Uppercase and lowercase letters of the alphabet should be considered different. Print n lines — pupils' names in the non-decreasing order of their heights. Each line must contain exactly one name. If there are several answers, print any of them. Uppercase and lowercase letters of the alphabet should be considered different. |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 18524482 | Egor | B | June 16, 2016, 4:10 p.m. | OK | Kotlin | TESTS | 21 | 124 | 0 | 1600 | |
| 18526399 | noxwell | B | June 16, 2016, 4:57 p.m. | OK | Kotlin | TESTS | 21 | 140 | 0 | 1600 | |
| 18524628 | pitfall | B | June 16, 2016, 4:13 p.m. | OK | Kotlin | TESTS | 21 | 140 | 0 | 1600 | |
| 18524396 | .tx | B | June 16, 2016, 4:08 p.m. | OK | Kotlin | TESTS | 21 | 155 | 0 | 1600 | |
| 18524317 | IgorAkhmetov | B | June 16, 2016, 4:06 p.m. | OK | Kotlin | TESTS | 21 | 155 | 512000 | 1600 | |
| 18524477 | dalex | B | June 16, 2016, 4:10 p.m. | OK | Kotlin | TESTS | 21 | 155 | 614400 | 1600 | |
| 40984298 | ReaLNero1 | B | July 30, 2018, 7:18 p.m. | OK | Kotlin | TESTS | 21 | 171 | 0 | 1600 | |
| 57983495 | Spheniscine | B | July 30, 2019, 10:22 a.m. | OK | Kotlin | TESTS | 21 | 171 | 204800 | 1600 | |
| 18524579 | bintree | B | June 16, 2016, 4:12 p.m. | OK | Kotlin | TESTS | 21 | 171 | 716800 | 1600 | |
| 23365228 | Ali.Pi | B | Dec. 27, 2016, 6:40 p.m. | OK | Kotlin | TESTS | 21 | 171 | 20684800 | 1600 |
Back to search problems