結果
| 問題 | 
                            No.5 数字のブロック
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2017-03-07 18:49:27 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 318 bytes | 
| コンパイル時間 | 295 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 11,520 KB | 
| 最終ジャッジ日時 | 2024-06-23 17:18:23 | 
| 合計ジャッジ時間 | 2,240 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | RE * 34 | 
ソースコード
a = input()
b = input()
c = input().split()
d = []
for i in range(len(c)):
    d[i] = int(c[i])
d.sort()
sums = 0
count = 0
for i in d:
    sums += i
    if sums < int(a):
        count += 1
        continue
    elif sums == int(a):
        count += 1
        break
    elif sums > inta(a):
        break
print(count)