結果

問題 No.5 数字のブロック
ユーザー aaaaaaaaaaaa
提出日時 2016-03-27 02:12:54
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 145 bytes
コンパイル時間 558 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 11,520 KB
最終ジャッジ日時 2024-10-02 01:16:30
合計ジャッジ時間 7,295 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 17 TLE * 1 -- * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

L = input()
N = input()
e = map(int, raw_input().split())
e.sort()
i = 0
j = 0
while i < L:
    i = sum(e[0:j+1])
    j = j + 1
else:
    print j
0