結果

問題 No.2153 何コーダーが何人?
ユーザー 310icecrystal310icecrystal
提出日時 2023-07-14 09:52:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 253 bytes
コンパイル時間 415 ms
コンパイル使用メモリ 82,180 KB
実行使用メモリ 62,484 KB
最終ジャッジ日時 2024-09-15 18:33:21
合計ジャッジ時間 2,304 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
51,968 KB
testcase_01 WA -
testcase_02 AC 44 ms
54,704 KB
testcase_03 AC 49 ms
61,312 KB
testcase_04 AC 48 ms
55,680 KB
testcase_05 AC 49 ms
54,656 KB
testcase_06 AC 53 ms
61,440 KB
testcase_07 AC 48 ms
55,296 KB
testcase_08 AC 45 ms
54,528 KB
testcase_09 AC 50 ms
61,184 KB
testcase_10 AC 45 ms
54,912 KB
testcase_11 AC 53 ms
62,336 KB
testcase_12 AC 46 ms
54,656 KB
testcase_13 AC 47 ms
55,808 KB
testcase_14 AC 45 ms
55,552 KB
testcase_15 AC 45 ms
54,656 KB
testcase_16 AC 52 ms
61,952 KB
testcase_17 AC 52 ms
61,696 KB
testcase_18 AC 52 ms
61,952 KB
testcase_19 AC 37 ms
52,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