結果

問題 No.1032 数数え
ユーザー pete1288998pete1288998
提出日時 2020-05-07 01:05:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 167 bytes
コンパイル時間 106 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 12,312 KB
最終ジャッジ日時 2023-09-16 07:38:23
合計ジャッジ時間 3,984 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,312 KB
testcase_01 AC 15 ms
7,796 KB
testcase_02 AC 15 ms
7,804 KB
testcase_03 AC 15 ms
7,816 KB
testcase_04 AC 15 ms
7,768 KB
testcase_05 AC 15 ms
7,800 KB
testcase_06 AC 16 ms
7,940 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

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