結果

問題 No.1628 Sorting Integers (MAX of M)
ユーザー 8nd5t8nd5t
提出日時 2021-07-30 21:17:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 243 ms / 2,000 ms
コード長 575 bytes
コンパイル時間 523 ms
コンパイル使用メモリ 86,848 KB
実行使用メモリ 91,480 KB
最終ジャッジ日時 2023-10-14 03:00:16
合計ジャッジ時間 4,102 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 237 ms
91,164 KB
testcase_01 AC 240 ms
91,480 KB
testcase_02 AC 241 ms
91,308 KB
testcase_03 AC 243 ms
91,272 KB
testcase_04 AC 237 ms
91,304 KB
testcase_05 AC 240 ms
91,480 KB
testcase_06 AC 238 ms
91,400 KB
testcase_07 AC 236 ms
91,364 KB
testcase_08 AC 243 ms
91,216 KB
testcase_09 AC 243 ms
91,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
from bisect import bisect_left,bisect_right
import sys,math,itertools,pprint,fractions
sys.setrecursionlimit(10**8)
mod = 10**9+7
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_1(): return list(map(lambda x:int(x)-1, sys.stdin.readline().split()))
def err(x): print(x); exit()

n = inp()
c = inpl()
res = ''
for i in range(9):
    for _ in range(c[i]):
        res += str(i+1)
print(res[::-1])
0