結果

問題 No.1628 Sorting Integers (MAX of M)
ユーザー c-yanc-yan
提出日時 2021-07-30 20:42:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 10,500 KB
実行使用メモリ 8,584 KB
最終ジャッジ日時 2023-10-14 02:58:34
合計ジャッジ時間 963 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,452 KB
testcase_01 AC 21 ms
8,312 KB
testcase_02 AC 18 ms
8,560 KB
testcase_03 AC 18 ms
8,584 KB
testcase_04 AC 18 ms
8,456 KB
testcase_05 AC 18 ms
8,392 KB
testcase_06 AC 19 ms
8,396 KB
testcase_07 AC 18 ms
8,568 KB
testcase_08 AC 18 ms
8,480 KB
testcase_09 AC 18 ms
8,396 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

N, *c = map(int, open(0).read().split())

t = []
for i in range(9):
    for _ in range(c[i]):
        t.append(i + 1)

print(''.join(str(i) for i in sorted(t, reverse=True)))
0