結果

問題 No.2153 何コーダーが何人?
ユーザー helloprahellopra
提出日時 2022-12-09 22:00:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 113 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 269 ms
コンパイル使用メモリ 86,844 KB
実行使用メモリ 76,300 KB
最終ジャッジ日時 2023-08-04 23:40:47
合計ジャッジ時間 3,679 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
71,308 KB
testcase_01 AC 110 ms
75,924 KB
testcase_02 AC 103 ms
71,960 KB
testcase_03 AC 108 ms
76,300 KB
testcase_04 AC 105 ms
71,916 KB
testcase_05 AC 107 ms
72,128 KB
testcase_06 AC 113 ms
75,956 KB
testcase_07 AC 108 ms
72,060 KB
testcase_08 AC 107 ms
72,036 KB
testcase_09 AC 112 ms
76,148 KB
testcase_10 AC 105 ms
72,064 KB
testcase_11 AC 112 ms
75,880 KB
testcase_12 AC 104 ms
72,024 KB
testcase_13 AC 111 ms
72,000 KB
testcase_14 AC 108 ms
72,056 KB
testcase_15 AC 103 ms
71,996 KB
testcase_16 AC 112 ms
76,152 KB
testcase_17 AC 109 ms
75,772 KB
testcase_18 AC 110 ms
75,972 KB
testcase_19 AC 95 ms
71,428 KB
testcase_20 AC 95 ms
71,448 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