結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
15,220 KB
testcase_01 AC 81 ms
15,156 KB
testcase_02 RE -
testcase_03 AC 171 ms
21,104 KB
testcase_04 AC 126 ms
18,692 KB
testcase_05 AC 203 ms
22,912 KB
testcase_06 AC 147 ms
19,892 KB
testcase_07 AC 125 ms
18,200 KB
testcase_08 AC 152 ms
19,936 KB
testcase_09 AC 88 ms
16,100 KB
testcase_10 AC 211 ms
23,928 KB
testcase_11 AC 120 ms
18,104 KB
testcase_12 AC 174 ms
21,108 KB
testcase_13 AC 198 ms
22,744 KB
testcase_14 AC 76 ms
15,188 KB
testcase_15 AC 77 ms
15,172 KB
testcase_16 AC 203 ms
22,996 KB
testcase_17 AC 263 ms
26,008 KB
testcase_18 AC 229 ms
24,528 KB
testcase_19 AC 281 ms
27,348 KB
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 AC 72 ms
15,216 KB
testcase_24 AC 76 ms
15,192 KB
testcase_25 AC 76 ms
15,412 KB
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 AC 119 ms
18,204 KB
testcase_30 AC 95 ms
16,420 KB
testcase_31 RE -
testcase_32 RE -
testcase_33 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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