結果

問題 No.1032 数数え
ユーザー vwxyz
提出日時 2022-09-07 00:56:00
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 411 ms / 2,000 ms
コード長 283 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 39,300 KB
最終ジャッジ日時 2024-11-22 01:12:31
合計ジャッジ時間 2,632 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
import sys
from typing import Counter
readline=sys.stdin.readline
write=sys.stdout.write
from math import gcd as GCD
import math

N,M=map(int,readline().split())
L=Counter(list(map(int,readline().split())))
for m in range(1,M+1):
    print(m,L[m])
0