結果

問題 No.156 キャンディー・ボックス
ユーザー mmmpppmmmppp
提出日時 2017-03-09 15:08:46
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 66 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 11,284 KB
実行使用メモリ 15,576 KB
最終ジャッジ日時 2023-09-06 05:21:15
合計ジャッジ時間 4,347 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
15,240 KB
testcase_01 AC 83 ms
15,304 KB
testcase_02 AC 81 ms
15,236 KB
testcase_03 AC 80 ms
15,128 KB
testcase_04 RE -
testcase_05 AC 86 ms
15,132 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 AC 78 ms
15,204 KB
testcase_19 AC 78 ms
15,108 KB
testcase_20 AC 78 ms
15,128 KB
testcase_21 AC 79 ms
15,080 KB
testcase_22 AC 80 ms
15,248 KB
testcase_23 AC 77 ms
15,120 KB
testcase_24 AC 79 ms
15,116 KB
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 AC 79 ms
15,000 KB
testcase_29 AC 78 ms
15,252 KB
testcase_30 AC 80 ms
15,240 KB
testcase_31 AC 81 ms
15,012 KB
testcase_32 AC 80 ms
15,124 KB
testcase_33 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval'N,M,*C='+$<.read.split*?,
p (0..N).find{|i|0>M-=C.sort[i]}||N
0