結果
問題 |
No.2092 Conjugation
|
ユーザー |
|
提出日時 | 2024-03-18 16:09:01 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 112 ms / 2,000 ms |
コード長 | 336 bytes |
コンパイル時間 | 239 ms |
コンパイル使用メモリ | 82,424 KB |
実行使用メモリ | 110,192 KB |
最終ジャッジ日時 | 2024-09-30 04:58:23 |
合計ジャッジ時間 | 2,795 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
from collections import Counter def young_diagram(A): counter = Counter(A) max_A = max(A) B = [0] * (max_A + 1) for k, v in counter.items(): B[k] += v for i in range(max_A - 1, -1, -1): B[i] += B[i + 1] return B[1:] N = int(input()) A = list(map(int, input().split())) print(*young_diagram(A))