結果

問題 No.2153 何コーダーが何人?
ユーザー u_kunu_kun
提出日時 2022-12-10 10:11:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 285 bytes
コンパイル時間 338 ms
コンパイル使用メモリ 81,984 KB
実行使用メモリ 64,192 KB
最終ジャッジ日時 2024-04-22 23:41:01
合計ジャッジ時間 2,451 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
54,380 KB
testcase_01 AC 58 ms
63,796 KB
testcase_02 AC 48 ms
56,856 KB
testcase_03 AC 54 ms
63,016 KB
testcase_04 AC 53 ms
58,516 KB
testcase_05 AC 49 ms
57,304 KB
testcase_06 AC 54 ms
63,900 KB
testcase_07 AC 50 ms
58,048 KB
testcase_08 AC 48 ms
56,324 KB
testcase_09 AC 54 ms
62,952 KB
testcase_10 AC 48 ms
56,584 KB
testcase_11 AC 57 ms
64,068 KB
testcase_12 AC 47 ms
56,992 KB
testcase_13 AC 50 ms
58,080 KB
testcase_14 AC 48 ms
57,648 KB
testcase_15 AC 47 ms
56,264 KB
testcase_16 AC 54 ms
64,192 KB
testcase_17 AC 55 ms
63,556 KB
testcase_18 AC 53 ms
63,184 KB
testcase_19 AC 42 ms
54,156 KB
testcase_20 AC 41 ms
54,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
    
0