結果

問題 No.1628 Sorting Integers (MAX of M)
ユーザー ABKZABKZ
提出日時 2021-09-26 15:38:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 146 bytes
コンパイル時間 338 ms
コンパイル使用メモリ 87,052 KB
実行使用メモリ 71,236 KB
最終ジャッジ日時 2023-09-19 02:53:51
合計ジャッジ時間 1,889 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
70,976 KB
testcase_01 AC 78 ms
71,200 KB
testcase_02 AC 78 ms
71,216 KB
testcase_03 AC 75 ms
70,976 KB
testcase_04 AC 73 ms
71,220 KB
testcase_05 AC 76 ms
70,940 KB
testcase_06 AC 76 ms
71,156 KB
testcase_07 AC 74 ms
70,980 KB
testcase_08 AC 73 ms
71,004 KB
testcase_09 AC 71 ms
71,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
ci= list(map(int, input().split()))

ans = "".join(reversed(sum([[str(i+1)]*c for i, c in enumerate(ci) if c != 0], [])))

print(ans)
0