結果
問題 |
No.1537 私の代わりに仕事やっといてください。
|
ユーザー |
![]() |
提出日時 | 2025-03-20 20:29:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 319 bytes |
コンパイル時間 | 138 ms |
コンパイル使用メモリ | 82,604 KB |
実行使用メモリ | 117,788 KB |
最終ジャッジ日時 | 2025-03-20 20:30:42 |
合計ジャッジ時間 | 2,993 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 1 WA * 8 |
ソースコード
n = int(input()) A = list(map(int, input().split())) capital_value = A[0] other_cities = [] for i in range(1, n): other_cities.append((-A[i], i + 1)) # Negative for descending sort other_cities.sort() path = [1] for city in other_cities: path.append(city[1]) path.append(1) print(' '.join(map(str, path)))