結果

問題 No.2153 何コーダーが何人?
ユーザー FVRChan
提出日時 2023-11-08 16:02:25
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 308 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-25 23:41:27
合計ジャッジ時間 1,572 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
takashi=dict()
for i in range(n):
    s,c=input().split()
    takashi[s]=c
counter=dict()
for v in takashi.values():
    if int(v) not in counter:
        counter[int(v)]=0
    counter[int(v)]+=1
for i in range(8):
    if i not in counter:
        print(0)
    else:
        print (counter[i])
0