結果

問題 No.2153 何コーダーが何人?
ユーザー 310icecrystal310icecrystal
提出日時 2023-07-14 09:52:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 253 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 87,296 KB
実行使用メモリ 75,604 KB
最終ジャッジ日時 2023-10-13 22:48:36
合計ジャッジ時間 3,064 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,264 KB
testcase_01 WA -
testcase_02 AC 72 ms
71,328 KB
testcase_03 AC 81 ms
75,520 KB
testcase_04 AC 75 ms
71,324 KB
testcase_05 AC 74 ms
71,116 KB
testcase_06 AC 79 ms
75,284 KB
testcase_07 AC 76 ms
71,260 KB
testcase_08 AC 73 ms
71,324 KB
testcase_09 AC 81 ms
75,604 KB
testcase_10 AC 74 ms
71,324 KB
testcase_11 AC 84 ms
75,604 KB
testcase_12 AC 73 ms
71,524 KB
testcase_13 AC 75 ms
71,280 KB
testcase_14 AC 73 ms
71,580 KB
testcase_15 AC 74 ms
71,192 KB
testcase_16 AC 79 ms
75,596 KB
testcase_17 AC 77 ms
75,184 KB
testcase_18 AC 78 ms
75,520 KB
testcase_19 AC 65 ms
71,352 KB
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

D = dict()
for _ in range(N):
    S,C = map(str,input().split())
    C = int(C)
    if S in D:
        D[S] = max(D[S],C)
    else:
        D[S] = C

count = [0]*8
for x in D:
    count[D[x]] += 1
for i in range(8):
    print(count[i])
0