結果

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

ソースコード

diff #

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