結果

問題 No.5 数字のブロック
ユーザー aaaaaaaaaaaa
提出日時 2016-03-27 02:03:36
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 149 bytes
コンパイル時間 313 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 7,296 KB
最終ジャッジ日時 2024-10-02 01:14:03
合計ジャッジ時間 1,518 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

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