結果

問題 No.1032 数数え
ユーザー 67oYG9nh2YMmIci
提出日時 2020-07-16 11:03:21
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 363 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 29,672 KB
最終ジャッジ日時 2024-11-24 08:00:05
合計ジャッジ時間 1,935 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int, input().split())
L=[ int(x) for x in input().split()]
L_cnt=[0]*(10**6)
for i in range(len(L)):
    t=L[i]
    L_cnt[t]+=1
for i in range(1,M+1):
    print(str(i)+" "+str(L_cnt[i]))
0