結果
問題 |
No.5 数字のブロック
|
ユーザー |
![]() |
提出日時 | 2020-08-05 12:10:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 233 bytes |
コンパイル時間 | 181 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,648 KB |
最終ジャッジ日時 | 2024-09-16 05:14:37 |
合計ジャッジ時間 | 2,303 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 RE * 10 |
ソースコード
L = int(input()) # L:箱の幅 N = int(input()) # N:ブロックの数 *W_list,=map(int,input().split()) W_list.sort() wsum = 0 count = 0 while wsum + W_list[0] <= L: wsum += W_list[0] del W_list[0] count += 1 print(count)