結果

問題 No.2153 何コーダーが何人?
ユーザー 👑 yumechiyumechi
提出日時 2023-01-18 00:28:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 335 ms
コンパイル使用メモリ 87,108 KB
実行使用メモリ 76,552 KB
最終ジャッジ日時 2023-09-01 21:46:05
合計ジャッジ時間 4,939 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 97 ms
71,596 KB
testcase_01 AC 112 ms
76,476 KB
testcase_02 AC 105 ms
72,048 KB
testcase_03 AC 110 ms
76,540 KB
testcase_04 AC 110 ms
72,044 KB
testcase_05 AC 108 ms
72,192 KB
testcase_06 AC 112 ms
76,260 KB
testcase_07 AC 107 ms
72,368 KB
testcase_08 AC 105 ms
72,052 KB
testcase_09 AC 110 ms
76,380 KB
testcase_10 AC 105 ms
72,336 KB
testcase_11 AC 115 ms
76,544 KB
testcase_12 AC 105 ms
72,388 KB
testcase_13 AC 106 ms
72,484 KB
testcase_14 AC 106 ms
72,240 KB
testcase_15 AC 104 ms
72,328 KB
testcase_16 AC 112 ms
76,432 KB
testcase_17 AC 111 ms
76,536 KB
testcase_18 AC 111 ms
76,552 KB
testcase_19 AC 96 ms
71,596 KB
testcase_20 AC 95 ms
71,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

d = dict()
for _ in range(int(input())):
  name, color = input().split()
  d[name] = int(color)
count = Counter(d.values())
for i in range(0, 8):
  print(count[i] if i in count else 0)
0