結果

問題 No.2153 何コーダーが何人?
ユーザー MasKoaTSMasKoaTS
提出日時 2022-12-09 21:24:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 918 bytes
コンパイル時間 350 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 89,344 KB
最終ジャッジ日時 2024-04-22 19:30:30
合計ジャッジ時間 4,116 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
86,784 KB
testcase_01 AC 132 ms
89,088 KB
testcase_02 AC 127 ms
86,912 KB
testcase_03 AC 131 ms
89,344 KB
testcase_04 AC 133 ms
89,216 KB
testcase_05 AC 123 ms
87,040 KB
testcase_06 AC 133 ms
89,088 KB
testcase_07 AC 129 ms
89,216 KB
testcase_08 AC 124 ms
87,296 KB
testcase_09 AC 139 ms
89,216 KB
testcase_10 AC 129 ms
87,168 KB
testcase_11 AC 138 ms
88,832 KB
testcase_12 AC 126 ms
87,168 KB
testcase_13 AC 133 ms
89,344 KB
testcase_14 AC 130 ms
87,168 KB
testcase_15 AC 125 ms
87,296 KB
testcase_16 AC 133 ms
89,216 KB
testcase_17 AC 135 ms
89,088 KB
testcase_18 AC 138 ms
89,216 KB
testcase_19 AC 124 ms
86,784 KB
testcase_20 AC 135 ms
86,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools as iter
import collections as coll
import heapq as hq
import bisect as bis
from decimal import Decimal as dec
from functools import cmp_to_key
import math
import sys
#import pypyjit
#pypyjit.set_param('max_unroll_recursion=-1')
sys.setrecursionlimit(10 ** 6)
inp = sys.stdin.readline
input = lambda : inp().rstrip()
getN = lambda : int(inp())
getNs = lambda : map(int, inp().split())
getList = lambda :list(map(int, inp().split()))
getStrs = lambda n : [input() for _ in [0] * n]
def yexit(): print("Yes"); exit(0)
def nexit(): print("No"); exit(0)
pi = 3.141592653589793
mod = 1000000007
MOD = 998244353
INF = 4611686018427387903
dx = [1, 0, -1, 0];	dy = [0, 1, 0, -1]
#di = coll.defaultdict(int)


"""
Main Code
"""

n = getN()
lis = [list(map(str, inp().split())) for _ in [0]*n]

ans = [0] * 8
dic = {}
for s, c in lis:
	dic[s] = int(c)
for v in dic.values():
	ans[v] += 1
for k in ans:
	print(k)
0