結果

問題 No.2153 何コーダーが何人?
ユーザー FVRChan
提出日時 2023-11-08 16:02:13
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 323 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-09-25 23:41:26
合計ジャッジ時間 1,856 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 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
print(counter)
for i in range(8):
    if i not in counter:
        print(0)
    else:
        print (counter[i])
0