結果

問題 No.1032 数数え
ユーザー hiragnhiragn
提出日時 2022-11-19 22:49:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 325 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 11,720 KB
実行使用メモリ 35,940 KB
最終ジャッジ日時 2023-10-21 02:45:59
合計ジャッジ時間 2,408 ms
ジャッジサーバーID
(参考情報)
judge10 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
9,956 KB
testcase_01 AC 29 ms
9,956 KB
testcase_02 AC 29 ms
9,956 KB
testcase_03 AC 31 ms
9,956 KB
testcase_04 AC 29 ms
9,956 KB
testcase_05 AC 28 ms
9,956 KB
testcase_06 AC 28 ms
9,960 KB
testcase_07 AC 319 ms
35,940 KB
testcase_08 AC 29 ms
9,960 KB
testcase_09 AC 41 ms
10,248 KB
testcase_10 AC 29 ms
9,968 KB
testcase_11 AC 29 ms
9,956 KB
testcase_12 AC 325 ms
29,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter


def main():
    n, m = map(int, input().split())
    arr = list(map(int, input().split()))

    c = Counter(arr)
    for i in range(1, m + 1):
        print(i, c[i])


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