結果
問題 |
No.5 数字のブロック
|
ユーザー |
|
提出日時 | 2022-01-17 11:10:06 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 242 bytes |
コンパイル時間 | 146 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 21,020 KB |
最終ジャッジ日時 | 2024-11-23 12:44:22 |
合計ジャッジ時間 | 4,136 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 34 |
ソースコード
from tkinter import W from traceback import print_tb L = int(input()) N = int(input()) W_list = list(map(int, input().split())) count = 0 W_list.sort() for w in W_list: if(L < w): break L -= w count += 1 print(count)