結果

問題 No.1628 Sorting Integers (MAX of M)
ユーザー chineristACchineristAC
提出日時 2021-07-30 20:31:58
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 385 bytes
コンパイル時間 660 ms
コンパイル使用メモリ 86,852 KB
実行使用メモリ 74,868 KB
最終ジャッジ日時 2023-10-14 02:45:22
合計ジャッジ時間 2,490 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
74,424 KB
testcase_01 AC 112 ms
74,568 KB
testcase_02 AC 110 ms
74,512 KB
testcase_03 AC 112 ms
74,832 KB
testcase_04 AC 114 ms
74,448 KB
testcase_05 AC 112 ms
74,656 KB
testcase_06 AC 112 ms
74,748 KB
testcase_07 AC 116 ms
74,728 KB
testcase_08 AC 112 ms
74,868 KB
testcase_09 AC 115 ms
74,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random,bisect
from collections import deque,defaultdict
from heapq import heapify,heappop,heappush
from itertools import permutations
from math import gcd,log

input = lambda :sys.stdin.buffer.readline()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

N = int(input())
c = li()

res = []
for i in range(9,0,-1):
    res += [str(i)]*c[i-1]
print("".join(res))
0