結果
問題 | No.2153 何コーダーが何人? |
ユーザー | u_kun |
提出日時 | 2022-12-10 10:11:07 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 62 ms / 2,000 ms |
コード長 | 285 bytes |
コンパイル時間 | 491 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 63,104 KB |
最終ジャッジ日時 | 2024-10-14 23:32:01 |
合計ジャッジ時間 | 2,363 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 19 |
ソースコード
from collections import defaultdict name_color = defaultdict(int) N = int(input()) for _ in range(N): name, color = input().split() name_color[name] = int(color) ans = [0 for _ in range(8)] for c in name_color.values(): ans[c] += 1 for i in ans: print(i)