結果

問題 No.2153 何コーダーが何人?
ユーザー flygonflygon
提出日時 2022-12-09 21:22:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 461 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 82,236 KB
実行使用メモリ 56,960 KB
最終ジャッジ日時 2024-04-22 19:22:31
合計ジャッジ時間 1,960 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
54,016 KB
testcase_01 AC 46 ms
55,936 KB
testcase_02 AC 48 ms
55,936 KB
testcase_03 AC 47 ms
55,936 KB
testcase_04 AC 44 ms
56,192 KB
testcase_05 AC 44 ms
55,936 KB
testcase_06 AC 46 ms
56,704 KB
testcase_07 AC 49 ms
56,576 KB
testcase_08 AC 44 ms
55,416 KB
testcase_09 AC 46 ms
56,448 KB
testcase_10 AC 45 ms
55,296 KB
testcase_11 AC 46 ms
56,960 KB
testcase_12 AC 44 ms
55,680 KB
testcase_13 AC 47 ms
56,064 KB
testcase_14 AC 45 ms
55,296 KB
testcase_15 AC 44 ms
55,296 KB
testcase_16 AC 50 ms
56,832 KB
testcase_17 AC 48 ms
56,704 KB
testcase_18 AC 46 ms
55,936 KB
testcase_19 AC 41 ms
54,016 KB
testcase_20 AC 44 ms
54,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
sys.setrecursionlimit(5*10**5)
input = sys.stdin.readline
import pypyjit
pypyjit.set_param('max_unroll_recursion=-1')
from collections import defaultdict, deque, Counter
from heapq import heappop, heappush
from bisect import bisect_left, bisect_right
from math import gcd
n = int(input())
d = defaultdict(int)
for i in range(n):
  s,c = map(str,input().split())
  d[s] = int(c)

ans = [0]*8
for v in d.values():
  ans[v] += 1

print(*ans, sep = "\n")
0