結果

問題 No.2092 Conjugation
ユーザー prussian_coderprussian_coder
提出日時 2022-10-07 21:38:50
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 182 bytes
コンパイル時間 1,200 ms
コンパイル使用メモリ 87,180 KB
実行使用メモリ 91,136 KB
最終ジャッジ日時 2023-09-03 00:51:44
合計ジャッジ時間 4,020 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,404 KB
testcase_01 AC 71 ms
71,236 KB
testcase_02 AC 69 ms
71,484 KB
testcase_03 AC 72 ms
71,420 KB
testcase_04 AC 72 ms
71,372 KB
testcase_05 AC 72 ms
71,136 KB
testcase_06 AC 73 ms
71,492 KB
testcase_07 AC 99 ms
80,996 KB
testcase_08 AC 112 ms
86,280 KB
testcase_09 AC 104 ms
82,640 KB
testcase_10 AC 104 ms
83,520 KB
testcase_11 AC 106 ms
83,360 KB
testcase_12 AC 103 ms
82,364 KB
testcase_13 AC 102 ms
81,284 KB
testcase_14 AC 105 ms
80,768 KB
testcase_15 AC 106 ms
82,172 KB
testcase_16 AC 114 ms
89,288 KB
testcase_17 AC 118 ms
89,428 KB
testcase_18 AC 117 ms
91,136 KB
testcase_19 AC 88 ms
82,504 KB
権限があれば一括ダウンロードができます

ソースコード

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