結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
30,552 KB
testcase_01 AC 117 ms
30,592 KB
testcase_02 AC 119 ms
31,200 KB
testcase_03 AC 115 ms
30,548 KB
testcase_04 AC 118 ms
30,996 KB
testcase_05 AC 115 ms
30,880 KB
testcase_06 AC 116 ms
30,728 KB
testcase_07 AC 121 ms
30,924 KB
testcase_08 AC 118 ms
31,212 KB
testcase_09 AC 115 ms
31,056 KB
testcase_10 AC 118 ms
31,032 KB
testcase_11 AC 118 ms
30,876 KB
testcase_12 AC 116 ms
31,200 KB
testcase_13 AC 115 ms
30,776 KB
testcase_14 AC 119 ms
31,524 KB
testcase_15 AC 119 ms
31,124 KB
testcase_16 AC 117 ms
31,208 KB
testcase_17 AC 118 ms
31,376 KB
testcase_18 AC 116 ms
30,676 KB
testcase_19 AC 113 ms
31,372 KB
testcase_20 AC 119 ms
31,232 KB
testcase_21 AC 116 ms
31,140 KB
testcase_22 AC 115 ms
30,740 KB
testcase_23 AC 119 ms
30,704 KB
testcase_24 AC 119 ms
31,080 KB
testcase_25 AC 119 ms
31,084 KB
testcase_26 AC 119 ms
30,832 KB
testcase_27 AC 120 ms
31,296 KB
testcase_28 AC 118 ms
30,548 KB
testcase_29 AC 123 ms
31,264 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: regex literal in condition
Syntax OK

ソースコード

diff #

x=1+2**f=29
loop.any?{puts"? #{x}";$>.flush;gets;z=1<<f-=1;x-=/0/?f<0?1:z:-z;f<0}
$><<'! '<<x
0