結果

問題 No.2153 何コーダーが何人?
ユーザー terasaterasa
提出日時 2022-12-09 21:49:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 594 bytes
コンパイル時間 435 ms
コンパイル使用メモリ 82,504 KB
実行使用メモリ 69,376 KB
最終ジャッジ日時 2024-04-22 21:41:37
合計ジャッジ時間 2,945 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
67,756 KB
testcase_01 AC 73 ms
68,864 KB
testcase_02 AC 71 ms
68,352 KB
testcase_03 AC 73 ms
68,992 KB
testcase_04 AC 77 ms
69,120 KB
testcase_05 AC 71 ms
68,864 KB
testcase_06 AC 78 ms
69,120 KB
testcase_07 AC 70 ms
68,864 KB
testcase_08 AC 74 ms
68,480 KB
testcase_09 AC 78 ms
68,736 KB
testcase_10 AC 74 ms
68,480 KB
testcase_11 AC 78 ms
69,376 KB
testcase_12 AC 77 ms
68,736 KB
testcase_13 AC 77 ms
68,992 KB
testcase_14 AC 79 ms
68,864 KB
testcase_15 AC 77 ms
68,352 KB
testcase_16 AC 81 ms
69,376 KB
testcase_17 AC 80 ms
69,376 KB
testcase_18 AC 77 ms
69,248 KB
testcase_19 AC 76 ms
67,584 KB
testcase_20 AC 75 ms
67,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from typing import List, Tuple, Callable, TypeVar, Optional
import sys
import itertools
import heapq
import bisect
import math
from collections import deque, defaultdict
from functools import lru_cache, cmp_to_key

input = sys.stdin.readline

if __file__ != 'prog.py':
    sys.setrecursionlimit(10 ** 6)


def readints(): return map(int, input().split())
def readlist(): return list(readints())
def readstr(): return input()[:-1]


N = int(input())
D = {}
for _ in range(N):
    s, c = input().split()
    D[s] = int(c)

ans = [0] * 8
for v in D.values():
    ans[v] += 1
print(*ans, sep='\n')
0