結果
問題 | No.2153 何コーダーが何人? |
ユーザー |
|
提出日時 | 2024-04-27 19:16:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 238 bytes |
コンパイル時間 | 180 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-16 00:13:41 |
合計ジャッジ時間 | 2,163 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 19 |
ソースコード
from collections import defaultdict n = int(input()) res = defaultdict(int) for _ in range(n): s, c = input().split() c = int(c) res[s] = c ans = [0] * 8 for k, v in res.items(): ans[v] += 1 for ai in ans: print(ai)