結果

問題 No.2153 何コーダーが何人?
ユーザー helloprahellopra
提出日時 2022-12-09 22:00:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 233 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 63,488 KB
最終ジャッジ日時 2024-04-22 22:07:58
合計ジャッジ時間 2,275 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
53,120 KB
testcase_01 AC 63 ms
63,232 KB
testcase_02 AC 54 ms
56,192 KB
testcase_03 AC 62 ms
62,336 KB
testcase_04 AC 59 ms
57,472 KB
testcase_05 AC 60 ms
56,576 KB
testcase_06 AC 62 ms
63,232 KB
testcase_07 AC 58 ms
57,472 KB
testcase_08 AC 53 ms
55,936 KB
testcase_09 AC 61 ms
62,592 KB
testcase_10 AC 55 ms
56,576 KB
testcase_11 AC 64 ms
63,488 KB
testcase_12 AC 53 ms
56,192 KB
testcase_13 AC 55 ms
57,088 KB
testcase_14 AC 62 ms
56,448 KB
testcase_15 AC 55 ms
56,192 KB
testcase_16 AC 63 ms
63,232 KB
testcase_17 AC 64 ms
63,360 KB
testcase_18 AC 64 ms
62,976 KB
testcase_19 AC 46 ms
53,504 KB
testcase_20 AC 44 ms
53,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
N = int(input())
D = defaultdict(lambda:-1)
for i in range(N):
	s,c = map(str,input().split())
	c = int(c)
	D[s] = c

c_l = [0] * 8
for i in D.values():
	c_l[i] += 1

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