結果
| 問題 |
No.2153 何コーダーが何人?
|
| コンテスト | |
| ユーザー |
Michirakara
|
| 提出日時 | 2022-11-09 11:35:06 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 59 ms / 2,000 ms |
| コード長 | 185 bytes |
| コンパイル時間 | 425 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 62,976 KB |
| 最終ジャッジ日時 | 2024-10-09 07:01:34 |
| 合計ジャッジ時間 | 2,185 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 |
ソースコード
from collections import defaultdict
n=int(input())
d=defaultdict(int)
for i in range(n):
s,c=input().split()
d[s]=c
a=[*d.values()]
for i in range(8):
print(a.count(str(i)))
Michirakara