結果

問題 No.2092 Conjugation
ユーザー prussian_coder
提出日時 2022-10-07 21:38:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 182 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 82,280 KB
実行使用メモリ 89,744 KB
最終ジャッジ日時 2024-06-12 06:35:21
合計ジャッジ時間 2,491 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=[int(x) for x in input().split()]
M=A[0]
B=[0 for _ in range(M)]
for i in range(N):
	B[A[i]-1]+=1
C=[0]*M
c=0
for i in reversed(range(M)):
	c+=B[i]
	C[i]=c
print(*C)
0