結果

問題 No.5 数字のブロック
ユーザー akihito0000
提出日時 2016-08-13 10:42:34
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 337 bytes
コンパイル時間 51 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 7,168 KB
最終ジャッジ日時 2024-11-07 16:07:16
合計ジャッジ時間 1,561 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 34
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
# -*- coding: utf-8 -*-

#A, B = map(int, raw_input().split())
#S = raw_input()
L = raw_input()
n = raw_input()
array = map(int, raw_input().split())

###
sum = 0
n = 0
array.sort()

for i in array:
       	sum += i
       	if num > L:
       		print n
       		break
       	else:
       		n += 1
else:
       	print n
0