結果

問題 No.156 キャンディー・ボックス
ユーザー 310icecrystal310icecrystal
提出日時 2023-06-23 07:40:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 130 bytes
コンパイル時間 1,127 ms
コンパイル使用メモリ 86,968 KB
実行使用メモリ 71,656 KB
最終ジャッジ日時 2023-09-13 02:23:26
合計ジャッジ時間 4,535 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 67 ms
71,564 KB
testcase_02 WA -
testcase_03 AC 69 ms
71,356 KB
testcase_04 AC 72 ms
71,308 KB
testcase_05 WA -
testcase_06 AC 71 ms
71,316 KB
testcase_07 AC 68 ms
71,412 KB
testcase_08 AC 69 ms
71,440 KB
testcase_09 AC 69 ms
71,444 KB
testcase_10 AC 69 ms
71,460 KB
testcase_11 AC 67 ms
71,536 KB
testcase_12 AC 70 ms
71,328 KB
testcase_13 AC 68 ms
71,168 KB
testcase_14 AC 68 ms
71,460 KB
testcase_15 AC 69 ms
71,328 KB
testcase_16 AC 68 ms
71,540 KB
testcase_17 AC 67 ms
71,284 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 71 ms
71,284 KB
testcase_26 AC 72 ms
71,436 KB
testcase_27 AC 71 ms
71,540 KB
testcase_28 AC 73 ms
71,328 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 69 ms
71,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())
C = list(map(int,input().split()))
C.sort()

now = 0
while M>= 1:
	M -= C[now]
	now += 1
print(now)
0