結果

問題 No.2153 何コーダーが何人?
ユーザー hiro1729hiro1729
提出日時 2023-09-08 20:30:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 380 ms
コンパイル使用メモリ 87,232 KB
実行使用メモリ 76,136 KB
最終ジャッジ日時 2023-09-08 20:31:00
合計ジャッジ時間 3,579 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
71,544 KB
testcase_01 AC 104 ms
76,100 KB
testcase_02 AC 102 ms
71,984 KB
testcase_03 AC 102 ms
75,876 KB
testcase_04 AC 99 ms
72,168 KB
testcase_05 AC 104 ms
72,120 KB
testcase_06 AC 103 ms
76,032 KB
testcase_07 AC 100 ms
72,136 KB
testcase_08 AC 97 ms
71,996 KB
testcase_09 AC 102 ms
75,892 KB
testcase_10 AC 98 ms
72,068 KB
testcase_11 AC 105 ms
76,088 KB
testcase_12 AC 98 ms
72,016 KB
testcase_13 AC 100 ms
71,992 KB
testcase_14 AC 99 ms
72,088 KB
testcase_15 AC 105 ms
72,208 KB
testcase_16 AC 103 ms
76,136 KB
testcase_17 AC 105 ms
75,836 KB
testcase_18 AC 104 ms
75,772 KB
testcase_19 AC 89 ms
71,524 KB
testcase_20 AC 90 ms
71,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
n = int(input())
d = defaultdict(int)
for _ in range(n):
	s, c = input().split()
	d[s] = int(c)
c = [0] * 8
for i in d.items():
	c[i[1]] += 1
print(*c, sep = '\n')
0