結果

問題 No.1032 数数え
ユーザー splash9494
提出日時 2020-05-04 19:12:09
言語 PyPy3
(8.0.1 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 99 ms / 2,000 ms
+ 295µs
コード長 241 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 544 ms
コンパイル使用メモリ 64,484 KB
実行使用メモリ 84,996 KB
最終ジャッジ日時 2026-10-29 01:13:58
合計ジャッジ時間 2,483 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
input = sys.stdin.readline

N, M = map(lambda x: int(x), input().split())

Ls = list(map(int, input().split()))

cnts = [0] * (M + 1)
for i in Ls:
    if i <= M:
        cnts[i] += 1
for i in range(1, M + 1):
    print(i, cnts[i])
0