結果
| 問題 | 
                            No.5 数字のブロック
                             | 
                    
| コンテスト | |
| ユーザー | 
                             megumeguro
                         | 
                    
| 提出日時 | 2020-04-11 15:45:09 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 235 bytes | 
| コンパイル時間 | 82 ms | 
| コンパイル使用メモリ | 12,800 KB | 
| 実行使用メモリ | 11,648 KB | 
| 最終ジャッジ日時 | 2024-09-19 03:26:31 | 
| 合計ジャッジ時間 | 2,237 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 27 WA * 7 | 
ソースコード
# coding: utf-8
#d, p = map(int,input().split())
l = int(input())
N = int(input())
W = list(map(int,input().split()))
W.sort()
ans = 0
for i in range(N):
    l -= W[i]
    if l > 0:
        ans += 1
    else:
        break
print(ans)
            
            
            
        
            
megumeguro