結果

問題 No.2153 何コーダーが何人?
ユーザー 21kazu1321kazu13
提出日時 2023-07-07 21:05:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 155 ms / 2,000 ms
コード長 1,113 bytes
コンパイル時間 337 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 78,256 KB
最終ジャッジ日時 2023-09-28 21:55:51
合計ジャッジ時間 5,663 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 152 ms
77,876 KB
testcase_01 AC 151 ms
78,112 KB
testcase_02 AC 151 ms
78,160 KB
testcase_03 AC 150 ms
78,080 KB
testcase_04 AC 153 ms
78,144 KB
testcase_05 AC 153 ms
78,064 KB
testcase_06 AC 150 ms
78,256 KB
testcase_07 AC 150 ms
77,944 KB
testcase_08 AC 149 ms
78,112 KB
testcase_09 AC 148 ms
77,968 KB
testcase_10 AC 149 ms
78,140 KB
testcase_11 AC 155 ms
78,152 KB
testcase_12 AC 149 ms
78,148 KB
testcase_13 AC 146 ms
78,100 KB
testcase_14 AC 148 ms
78,104 KB
testcase_15 AC 148 ms
78,208 KB
testcase_16 AC 149 ms
78,188 KB
testcase_17 AC 148 ms
78,204 KB
testcase_18 AC 149 ms
77,936 KB
testcase_19 AC 146 ms
78,244 KB
testcase_20 AC 146 ms
78,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys
from bisect import bisect_left, bisect_right, insort_left, insort_right  # type: ignore
from collections import Counter, defaultdict, deque  # type: ignore
from math import gcd, sqrt, ceil  # type: ignore
from heapq import heapify, heappop, heappush, heappushpop, heapreplace, merge  # type: ignore
from itertools import accumulate, combinations, permutations, product  # type: ignore
from string import ascii_lowercase, ascii_uppercase # type: ignore

def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode("utf-8").split()
def S(): return sys.stdin.buffer.readline().rstrip().decode("utf-8")
def IR(n): return [I() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
def SRL(n): return [list(S()) for _ in range(n)]

N = I()
d = dict()
for _ in range(N):
    s,c = LS()
    d[s] = int(c)
ans = [0]*8
for v in d.values():
    ans[v]+=1
print(*ans,sep='\n')
0