結果
問題 | No.2153 何コーダーが何人? |
ユーザー | flygon |
提出日時 | 2022-12-09 21:22:33 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 52 ms / 2,000 ms |
コード長 | 461 bytes |
コンパイル時間 | 1,034 ms |
コンパイル使用メモリ | 82,004 KB |
実行使用メモリ | 56,704 KB |
最終ジャッジ日時 | 2024-10-14 18:57:15 |
合計ジャッジ時間 | 2,960 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 19 |
ソースコード
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")