Submission #72423906
Source Code Expand
""" <方針> - 到着時間と共に番号をリスト `horses` に保存する. - 到着時間でソートして,トップ3の番号を出力すれば良い. """ # 入力 N = int(input()) T = list(map(int, input().split())) # 順位を求める horses = [(i+1, t) for (i, t) in enumerate(T)] horses.sort(key=lambda x: x[1]) # 到着時間でソートする # トップ3の番号を取り出す top3 = list(map(lambda x: x[0], horses[:3])) # 出力 print(*top3)
Submission Info
| Submission Time | |
|---|---|
| Task | B - Trifecta |
| User | mattsunkun |
| Language | Python (PyPy 3.11-v7.3.20) |
| Score | 200 |
| Code Size | 489 Byte |
| Status | AC |
| Exec Time | 55 ms |
| Memory | 80048 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt |
| All | random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| random_01.txt | AC | 55 ms | 79904 KiB |
| random_02.txt | AC | 53 ms | 79916 KiB |
| random_03.txt | AC | 54 ms | 79920 KiB |
| random_04.txt | AC | 55 ms | 79616 KiB |
| random_05.txt | AC | 55 ms | 79920 KiB |
| random_06.txt | AC | 55 ms | 80048 KiB |
| random_07.txt | AC | 54 ms | 79968 KiB |
| random_08.txt | AC | 55 ms | 79744 KiB |
| sample_01.txt | AC | 53 ms | 79832 KiB |
| sample_02.txt | AC | 53 ms | 79920 KiB |