結果

問題 No.1032 数数え
ユーザー pete1288998pete1288998
提出日時 2020-05-07 01:05:38
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 167 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 36,436 KB
最終ジャッジ日時 2024-07-03 09:14:06
合計ジャッジ時間 3,946 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 4 TLE * 1 -- * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
l=list(map(int,input().split()))
l=sorted(l)

for i in range(1,m+1):
    ans=l.count(i)
    print(i,ans)
    if ans > 0:
        l=l[ans:]
0