結果

問題 No.1032 数数え
ユーザー lllllll88938494
提出日時 2022-01-19 10:35:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 196 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 82,512 KB
実行使用メモリ 113,284 KB
最終ジャッジ日時 2024-11-23 13:45:01
合計ジャッジ時間 2,292 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict as ddict
n,m=map(int,input().split())
ns=list(map(int,input().split()))
dic=ddict(int)

for i in ns:
    dic[i] += 1

for i in range(1,m+1):
    print(i,dic[i])
0