結果

問題 No.1032 数数え
ユーザー ryosuke0825
提出日時 2020-05-02 03:07:47
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 437 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 36,708 KB
最終ジャッジ日時 2024-12-26 01:03:28
合計ジャッジ時間 2,474 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections

N, M = map(int, input().split())
L = list(map(int, input().split()))

c = collections.Counter(L)

for i in range(1, M+1):
    if i in c:
        print(i, c[i])
    else:
        print(i, 0)
0