結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
30,832 KB
testcase_01 AC 125 ms
31,108 KB
testcase_02 AC 124 ms
30,852 KB
testcase_03 AC 125 ms
31,208 KB
testcase_04 AC 126 ms
30,976 KB
testcase_05 AC 127 ms
31,424 KB
testcase_06 AC 125 ms
30,856 KB
testcase_07 AC 126 ms
31,196 KB
testcase_08 AC 127 ms
30,876 KB
testcase_09 AC 125 ms
31,216 KB
testcase_10 AC 126 ms
31,024 KB
testcase_11 AC 125 ms
31,252 KB
testcase_12 AC 125 ms
30,984 KB
testcase_13 AC 123 ms
30,768 KB
testcase_14 AC 124 ms
31,180 KB
testcase_15 AC 123 ms
30,912 KB
testcase_16 AC 124 ms
31,212 KB
testcase_17 AC 125 ms
31,240 KB
testcase_18 AC 123 ms
31,088 KB
testcase_19 AC 124 ms
31,188 KB
testcase_20 AC 124 ms
30,740 KB
testcase_21 AC 124 ms
31,384 KB
testcase_22 AC 124 ms
30,752 KB
testcase_23 AC 125 ms
31,276 KB
testcase_24 AC 123 ms
30,756 KB
testcase_25 AC 126 ms
31,240 KB
testcase_26 AC 125 ms
31,016 KB
testcase_27 AC 127 ms
31,344 KB
testcase_28 AC 127 ms
30,560 KB
testcase_29 AC 126 ms
31,040 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: regex literal in condition
Syntax OK

ソースコード

diff #

x=1+z=1<<29
(puts"? #{x}";$>.flush;gets;z/=2;x-=/0/?z<1?1:z:-z)while z>0
$><<'! '<<x
0