結果
問題 |
No.5 数字のブロック
|
ユーザー |
![]() |
提出日時 | 2021-01-20 17:26:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 184 bytes |
コンパイル時間 | 294 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,648 KB |
最終ジャッジ日時 | 2024-12-23 07:15:55 |
合計ジャッジ時間 | 2,674 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 34 |
ソースコード
L = input() N = input() Ws = list(map(int, input().split())) Ws.sort() num=0 sumW=0 for W in Ws: sumW += W if sumW <= L: num += 1 continue break print(num)