結果
問題 | No.1628 Sorting Integers (MAX of M) |
ユーザー |
![]() |
提出日時 | 2021-07-30 21:17:52 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 175 ms / 2,000 ms |
コード長 | 575 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 84,864 KB |
最終ジャッジ日時 | 2024-09-15 22:35:31 |
合計ジャッジ時間 | 2,822 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
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])