結果

問題 No.1032 数数え
ユーザー futago0118futago0118
提出日時 2020-05-28 14:02:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 319 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 29,664 KB
最終ジャッジ日時 2024-04-21 05:37:11
合計ジャッジ時間 1,783 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,624 KB
testcase_01 AC 30 ms
10,624 KB
testcase_02 AC 30 ms
10,624 KB
testcase_03 AC 30 ms
10,496 KB
testcase_04 RE -
testcase_05 AC 35 ms
10,496 KB
testcase_06 AC 30 ms
10,624 KB
testcase_07 RE -
testcase_08 AC 31 ms
10,624 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 30 ms
10,624 KB
testcase_12 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())

num_list = list(map(int,input().split()))
num_list = sorted(num_list,reverse = True)

for i in range(1,M+1):
    cnt = 0
    if i != num_list[-1]:
        print(i,0)
    else:
        
        while i == num_list[-1]:
            num_list.pop()
            cnt += 1
        print(i,cnt)
0