結果
| 問題 | No.5 数字のブロック | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-03-21 16:41:13 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 145 bytes | 
| コンパイル時間 | 708 ms | 
| コンパイル使用メモリ | 82,432 KB | 
| 実行使用メモリ | 64,896 KB | 
| 最終ジャッジ日時 | 2024-12-23 02:50:05 | 
| 合計ジャッジ時間 | 3,370 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 24 RE * 10 | 
ソースコード
l = int(input())
n = int(input())
w = sorted(list(map(int,input().split())))
cnt = len(w)
while w[0] <= l:
    l -= w.pop(0)
print(cnt - len(w))
            
            
            
        