結果

問題 No.246 質問と回答
ユーザー mmmpppmmmppp
提出日時 2017-03-02 05:05:39
言語 Ruby
(3.3.0)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 110 bytes
コンパイル時間 550 ms
コンパイル使用メモリ 11,188 KB
実行使用メモリ 31,588 KB
平均クエリ数 31.00
最終ジャッジ日時 2023-09-23 20:21:38
合計ジャッジ時間 5,891 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
31,012 KB
testcase_01 AC 123 ms
30,932 KB
testcase_02 AC 121 ms
30,624 KB
testcase_03 AC 120 ms
30,888 KB
testcase_04 AC 117 ms
31,112 KB
testcase_05 AC 124 ms
31,440 KB
testcase_06 AC 122 ms
31,140 KB
testcase_07 AC 120 ms
30,824 KB
testcase_08 AC 120 ms
31,160 KB
testcase_09 AC 121 ms
31,196 KB
testcase_10 AC 121 ms
31,132 KB
testcase_11 AC 118 ms
30,816 KB
testcase_12 AC 118 ms
31,368 KB
testcase_13 AC 119 ms
30,972 KB
testcase_14 AC 116 ms
31,244 KB
testcase_15 AC 118 ms
31,348 KB
testcase_16 AC 117 ms
30,940 KB
testcase_17 AC 117 ms
30,980 KB
testcase_18 AC 119 ms
30,940 KB
testcase_19 AC 120 ms
31,248 KB
testcase_20 AC 119 ms
30,984 KB
testcase_21 AC 121 ms
31,264 KB
testcase_22 AC 117 ms
31,460 KB
testcase_23 AC 120 ms
31,032 KB
testcase_24 AC 119 ms
31,080 KB
testcase_25 AC 119 ms
31,344 KB
testcase_26 AC 118 ms
30,936 KB
testcase_27 AC 117 ms
31,540 KB
testcase_28 AC 117 ms
30,776 KB
testcase_29 AC 118 ms
31,588 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: regex literal in condition
Main.rb:2: warning: regex literal in condition
Syntax OK

ソースコード

diff #

x=1+2**f=29
loop.any?{puts [??,x]*' ';$>.flush;gets;f-=1;a=f<0?/1/?0:1:1<<f;/1/?x+=a: x-=a;f<0}
$><<[?!,x]*' '
0