結果

問題 No.5 数字のブロック
ユーザー mmmpppmmmppp
提出日時 2017-03-08 16:32:02
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 82 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 11,376 KB
実行使用メモリ 27,204 KB
最終ジャッジ日時 2023-09-05 23:56:22
合計ジャッジ時間 6,062 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,164 KB
testcase_01 AC 79 ms
15,116 KB
testcase_02 RE -
testcase_03 AC 179 ms
21,200 KB
testcase_04 AC 126 ms
18,584 KB
testcase_05 AC 206 ms
22,916 KB
testcase_06 AC 158 ms
19,960 KB
testcase_07 AC 129 ms
18,440 KB
testcase_08 AC 157 ms
20,056 KB
testcase_09 AC 100 ms
16,172 KB
testcase_10 AC 228 ms
23,816 KB
testcase_11 AC 129 ms
18,208 KB
testcase_12 AC 178 ms
21,204 KB
testcase_13 AC 207 ms
22,684 KB
testcase_14 AC 81 ms
15,292 KB
testcase_15 AC 80 ms
15,264 KB
testcase_16 AC 211 ms
22,984 KB
testcase_17 AC 271 ms
26,132 KB
testcase_18 AC 236 ms
24,728 KB
testcase_19 AC 284 ms
27,204 KB
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 AC 80 ms
15,248 KB
testcase_24 AC 79 ms
15,028 KB
testcase_25 AC 82 ms
15,448 KB
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 AC 122 ms
18,416 KB
testcase_30 AC 100 ms
16,576 KB
testcase_31 RE -
testcase_32 RE -
testcase_33 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval'L,N,*W='+$<.read.split*?,
s=0
(0..N).any?{|i|s+=W.sort[i];i+=1;s>L&&s=i}
p~-s
0