結果

問題 No.2153 何コーダーが何人?
ユーザー pyt-314pyt-314
提出日時 2023-05-14 11:06:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 10,708 KB
実行使用メモリ 8,444 KB
最終ジャッジ日時 2023-08-20 01:44:45
合計ジャッジ時間 2,070 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,888 KB
testcase_01 AC 17 ms
7,844 KB
testcase_02 AC 17 ms
7,820 KB
testcase_03 AC 18 ms
8,324 KB
testcase_04 AC 17 ms
8,284 KB
testcase_05 AC 17 ms
7,792 KB
testcase_06 AC 18 ms
8,204 KB
testcase_07 AC 17 ms
8,348 KB
testcase_08 AC 17 ms
7,772 KB
testcase_09 AC 18 ms
8,328 KB
testcase_10 AC 17 ms
7,768 KB
testcase_11 AC 18 ms
8,440 KB
testcase_12 AC 17 ms
7,836 KB
testcase_13 AC 18 ms
8,328 KB
testcase_14 AC 17 ms
7,832 KB
testcase_15 AC 17 ms
7,832 KB
testcase_16 AC 19 ms
8,324 KB
testcase_17 AC 18 ms
8,360 KB
testcase_18 AC 18 ms
8,444 KB
testcase_19 AC 15 ms
7,964 KB
testcase_20 AC 15 ms
7,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

k = {1: 0, 2: 1, 3: 2, 4: 3, 5: 4, 6: 5, 7: 6, 8: 7}
n = int(input())
for i in range(n):
    name, c = map(str, input().split())
    k[name] = int(c)
for i in range(8):
    print(list(k.values()).count(i) - 1)
0