結果

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

ソースコード

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
0