結果

問題 No.5 数字のブロック
ユーザー fish
提出日時 2025-06-17 23:25:04
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 370 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 11,392 KB
最終ジャッジ日時 2025-06-17 23:25:07
合計ジャッジ時間 3,200 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 34
権限があれば一括ダウンロードができます

ソースコード

diff #

L = int(input())
N = int(input())
num = list(map(int, input().split(' ')))
point = 0

for i in range(len(num)):
    if L > 0:
        point += 1
        max_num = max(num)
        print(max_num)
        L -= max_num

print(point)
0