結果

問題 No.2153 何コーダーが何人?
ユーザー tassei903tassei903
提出日時 2022-12-09 21:23:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 549 bytes
コンパイル時間 374 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 63,360 KB
最終ジャッジ日時 2024-04-22 19:25:56
合計ジャッジ時間 2,176 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
54,016 KB
testcase_01 AC 62 ms
62,464 KB
testcase_02 AC 50 ms
55,936 KB
testcase_03 AC 63 ms
62,720 KB
testcase_04 AC 54 ms
56,960 KB
testcase_05 AC 51 ms
56,576 KB
testcase_06 AC 60 ms
62,848 KB
testcase_07 AC 55 ms
57,472 KB
testcase_08 AC 48 ms
55,936 KB
testcase_09 AC 58 ms
62,208 KB
testcase_10 AC 61 ms
56,320 KB
testcase_11 AC 66 ms
63,232 KB
testcase_12 AC 52 ms
55,808 KB
testcase_13 AC 53 ms
56,832 KB
testcase_14 AC 54 ms
56,576 KB
testcase_15 AC 51 ms
56,064 KB
testcase_16 AC 57 ms
63,360 KB
testcase_17 AC 58 ms
62,848 KB
testcase_18 AC 62 ms
62,720 KB
testcase_19 AC 48 ms
54,144 KB
testcase_20 AC 42 ms
53,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
#input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################
from collections import defaultdict
n = ni()
d = defaultdict(int)
for i in range(n):
    s,c = input().split()
    d[s] = int(c)
ans = [0] * 8
for i in d:
    ans[d[i]] += 1
print(*ans,sep="\n")
0