結果

問題 No.5 数字のブロック
ユーザー drymousedrymouse
提出日時 2024-11-17 03:06:44
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 108 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 11,648 KB
最終ジャッジ日時 2024-11-17 03:06:48
合計ジャッジ時間 2,484 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20 RE * 7 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

L=int(input())
N=int(input())
W=sorted(map(int, input().split()))
i=s=0
while s<L:
 s+=W[i]
 i+=1
print(i-1)
0