結果

問題 No.2153 何コーダーが何人?
ユーザー 学ぶマン
提出日時 2025-05-28 19:44:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 652 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 64,536 KB
最終ジャッジ日時 2025-05-28 19:44:56
合計ジャッジ時間 3,130 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
N = int(input())
dd = defaultdict(int)
for i in range(N):
    s, c = input().split()
    c = int(c)
    dd[s] = c

cnt = [0]*8
for k, v in dd.items():
    cnt[v] += 1

print(*cnt, sep='\n')
0