結果

問題 No.1628 Sorting Integers (MAX of M)
ユーザー Fullmoon85072Fullmoon85072
提出日時 2021-11-20 20:12:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 1,156 ms
コンパイル使用メモリ 86,972 KB
実行使用メモリ 71,268 KB
最終ジャッジ日時 2023-09-02 16:37:12
合計ジャッジ時間 1,950 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
70,956 KB
testcase_01 AC 73 ms
71,032 KB
testcase_02 AC 75 ms
71,012 KB
testcase_03 AC 78 ms
71,220 KB
testcase_04 AC 74 ms
71,036 KB
testcase_05 AC 76 ms
71,240 KB
testcase_06 AC 74 ms
71,132 KB
testcase_07 AC 73 ms
71,020 KB
testcase_08 AC 75 ms
71,268 KB
testcase_09 AC 75 ms
70,960 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
line = input().split(" ")

number_list = list()
for c in line:
    number_list.append(int(c))

index = 9
return_list = list()
for x in reversed(number_list):
    for i in range(x):
        return_list.append(str(index))

    index -= 1

print("".join(return_list))
0