結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
30,828 KB
testcase_01 AC 116 ms
31,240 KB
testcase_02 AC 114 ms
30,640 KB
testcase_03 AC 115 ms
31,100 KB
testcase_04 AC 117 ms
30,812 KB
testcase_05 AC 115 ms
31,256 KB
testcase_06 AC 115 ms
31,212 KB
testcase_07 AC 116 ms
31,304 KB
testcase_08 AC 118 ms
31,360 KB
testcase_09 AC 117 ms
31,424 KB
testcase_10 AC 117 ms
31,528 KB
testcase_11 AC 119 ms
30,788 KB
testcase_12 AC 116 ms
31,060 KB
testcase_13 AC 117 ms
30,744 KB
testcase_14 AC 115 ms
31,008 KB
testcase_15 AC 116 ms
30,808 KB
testcase_16 AC 114 ms
30,744 KB
testcase_17 AC 115 ms
30,976 KB
testcase_18 AC 116 ms
30,540 KB
testcase_19 AC 112 ms
30,828 KB
testcase_20 AC 116 ms
31,024 KB
testcase_21 AC 114 ms
30,876 KB
testcase_22 AC 115 ms
30,936 KB
testcase_23 AC 119 ms
30,664 KB
testcase_24 AC 120 ms
30,880 KB
testcase_25 AC 119 ms
30,580 KB
testcase_26 AC 120 ms
30,952 KB
testcase_27 AC 118 ms
31,008 KB
testcase_28 AC 115 ms
31,220 KB
testcase_29 AC 119 ms
30,864 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:6: warning: regex literal in condition
Main.rb:7: 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