結果

問題 No.1628 Sorting Integers (MAX of M)
ユーザー kept1994kept1994
提出日時 2021-08-25 12:54:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 82,336 KB
実行使用メモリ 53,500 KB
最終ジャッジ日時 2024-04-28 02:57:52
合計ジャッジ時間 1,034 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
52,772 KB
testcase_01 AC 32 ms
51,940 KB
testcase_02 AC 31 ms
53,500 KB
testcase_03 AC 29 ms
52,564 KB
testcase_04 AC 30 ms
52,164 KB
testcase_05 AC 29 ms
51,628 KB
testcase_06 AC 30 ms
53,100 KB
testcase_07 AC 29 ms
52,764 KB
testcase_08 AC 29 ms
52,820 KB
testcase_09 AC 31 ms
52,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys

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

if __name__ == '__main__':
    main()
0