結果

問題 No.2153 何コーダーが何人?
ユーザー iseeisee
提出日時 2022-12-09 21:22:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 366 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 54,144 KB
最終ジャッジ日時 2024-04-22 19:23:38
合計ジャッジ時間 2,117 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
52,096 KB
testcase_01 AC 47 ms
53,504 KB
testcase_02 AC 46 ms
53,248 KB
testcase_03 AC 47 ms
53,888 KB
testcase_04 AC 43 ms
53,248 KB
testcase_05 AC 46 ms
52,992 KB
testcase_06 AC 45 ms
53,760 KB
testcase_07 AC 45 ms
53,632 KB
testcase_08 AC 46 ms
53,120 KB
testcase_09 AC 43 ms
53,504 KB
testcase_10 AC 44 ms
53,376 KB
testcase_11 AC 49 ms
54,144 KB
testcase_12 AC 41 ms
52,736 KB
testcase_13 AC 46 ms
53,632 KB
testcase_14 AC 47 ms
53,248 KB
testcase_15 AC 45 ms
53,120 KB
testcase_16 AC 47 ms
53,504 KB
testcase_17 AC 49 ms
54,144 KB
testcase_18 AC 44 ms
53,888 KB
testcase_19 AC 44 ms
51,584 KB
testcase_20 AC 41 ms
51,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()

def main():
    # 入力
    N = int(input())
    # 計算・出力
    cols = dict()
    for _ in range(N):
        S, C = input().split()
        cols[S] = int(C)
    ans = [0]*8
    for val in cols.values():
        ans[val] += 1
    for a in ans:
        print(a)

if __name__ == "__main__":
    main()
0