結果

問題 No.2153 何コーダーが何人?
ユーザー makudo_naldmakudo_nald
提出日時 2022-12-09 21:23:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 235 bytes
コンパイル時間 456 ms
コンパイル使用メモリ 82,440 KB
実行使用メモリ 63,232 KB
最終ジャッジ日時 2024-04-22 19:27:06
合計ジャッジ時間 3,102 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
53,888 KB
testcase_01 AC 69 ms
62,720 KB
testcase_02 AC 65 ms
55,680 KB
testcase_03 AC 59 ms
62,848 KB
testcase_04 AC 58 ms
56,832 KB
testcase_05 AC 60 ms
56,832 KB
testcase_06 AC 68 ms
62,848 KB
testcase_07 AC 58 ms
56,960 KB
testcase_08 AC 50 ms
55,808 KB
testcase_09 AC 56 ms
62,848 KB
testcase_10 AC 50 ms
56,320 KB
testcase_11 AC 59 ms
63,232 KB
testcase_12 AC 49 ms
55,936 KB
testcase_13 AC 52 ms
56,704 KB
testcase_14 AC 54 ms
56,320 KB
testcase_15 AC 51 ms
56,316 KB
testcase_16 AC 66 ms
62,848 KB
testcase_17 AC 63 ms
63,104 KB
testcase_18 AC 66 ms
62,976 KB
testcase_19 AC 45 ms
53,504 KB
testcase_20 AC 48 ms
53,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

from collections import defaultdict
d = defaultdict(int)

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

ans = [0] * 8

for i, coder in d.items():
    ans[coder] += 1

print(*ans, sep="\n")
0