結果

問題 No.156 キャンディー・ボックス
ユーザー yuppe19 😺
提出日時 2015-04-16 20:37:54
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 2,000 ms
コード長 182 bytes
コンパイル時間 517 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-07-05 09:13:51
合計ジャッジ時間 1,778 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
N, M = map(int, raw_input().split())
C = map(int, raw_input().split())
summa = (sum(sorted(C)[:i+1]) for i in xrange(N))
print N - len(filter(lambda e: e>M, summa))
0