結果

問題 No.2153 何コーダーが何人?
ユーザー roarisroaris
提出日時 2022-12-09 23:16:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 458 ms
コンパイル使用メモリ 82,480 KB
実行使用メモリ 56,312 KB
最終ジャッジ日時 2024-04-22 23:03:32
合計ジャッジ時間 2,162 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
55,144 KB
testcase_01 AC 42 ms
54,624 KB
testcase_02 AC 43 ms
56,308 KB
testcase_03 AC 43 ms
55,760 KB
testcase_04 AC 42 ms
54,664 KB
testcase_05 AC 42 ms
54,936 KB
testcase_06 AC 42 ms
55,936 KB
testcase_07 AC 47 ms
55,360 KB
testcase_08 AC 42 ms
54,444 KB
testcase_09 AC 44 ms
56,248 KB
testcase_10 AC 42 ms
54,936 KB
testcase_11 AC 43 ms
55,820 KB
testcase_12 AC 43 ms
56,312 KB
testcase_13 AC 42 ms
55,292 KB
testcase_14 AC 44 ms
54,860 KB
testcase_15 AC 43 ms
54,620 KB
testcase_16 AC 43 ms
55,292 KB
testcase_17 AC 43 ms
56,076 KB
testcase_18 AC 42 ms
55,940 KB
testcase_19 AC 40 ms
54,280 KB
testcase_20 AC 41 ms
53,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *

N = int(input())
d = defaultdict(int)

for _ in range(N):
    s, c = input().split()
    d[s] = int(c)

cnt = [0]*8

for v in d.values():
    cnt[v] += 1

for i in range(8):
    print(cnt[i])
0