結果
| 問題 |
No.1628 Sorting Integers (MAX of M)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-30 20:31:58 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 2,000 ms |
| コード長 | 385 bytes |
| コンパイル時間 | 217 ms |
| コンパイル使用メモリ | 82,156 KB |
| 実行使用メモリ | 55,552 KB |
| 最終ジャッジ日時 | 2024-09-15 22:22:57 |
| 合計ジャッジ時間 | 1,358 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
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))