結果
問題 |
No.2153 何コーダーが何人?
|
ユーザー |
![]() |
提出日時 | 2022-12-14 20:16:35 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 316 bytes |
コンパイル時間 | 338 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-11-08 11:54:24 |
合計ジャッジ時間 | 2,084 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 19 |
ソースコード
from collections import defaultdict from collections import Counter def main(): n = int(input()) d = defaultdict(int) for _ in range(n): s, c = input().split() d[s] = int(c) c = Counter(d.values()) for i in range(8): print(c[i]) if __name__ == "__main__": main()