結果

問題 No.1032 数数え
ユーザー takakin
提出日時 2020-06-11 22:28:25
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 476 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 38,684 KB
最終ジャッジ日時 2024-06-24 03:24:52
合計ジャッジ時間 2,569 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
n,m=map(int,input().split())
L=[int(i) for i in input().split()]
import collections
D=collections.defaultdict(int)
for l in L:
  D[l]+=1
for i in range(1,m+1):
  print(i,D[i])
0