結果

問題 No.1628 Sorting Integers (MAX of M)
ユーザー yosakayosaka
提出日時 2021-07-30 21:59:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 705 ms
コンパイル使用メモリ 10,624 KB
実行使用メモリ 8,572 KB
最終ジャッジ日時 2023-10-14 04:42:22
合計ジャッジ時間 1,227 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,436 KB
testcase_01 AC 18 ms
8,544 KB
testcase_02 AC 18 ms
8,512 KB
testcase_03 AC 17 ms
8,508 KB
testcase_04 AC 18 ms
8,468 KB
testcase_05 AC 19 ms
8,560 KB
testcase_06 AC 18 ms
8,504 KB
testcase_07 AC 18 ms
8,516 KB
testcase_08 AC 18 ms
8,396 KB
testcase_09 AC 18 ms
8,572 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter


def main():
    N = int(input())
    A = list(map(int, input().split()))
    ans = ""
    for i in range(1, 10):
        ans += str(i) * A[i - 1]
    print(ans[::-1])


main()
0