結果
問題 |
No.246 質問と回答
|
ユーザー |
![]() |
提出日時 | 2017-03-02 05:18:31 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 145 ms / 2,000 ms |
コード長 | 104 bytes |
コンパイル時間 | 83 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 29,144 KB |
平均クエリ数 | 31.00 |
最終ジャッジ日時 | 2024-07-16 20:10:22 |
合計ジャッジ時間 | 6,297 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
コンパイルメッセージ
Main.rb:6: warning: regex literal in condition Main.rb:7: warning: regex literal in condition Syntax OK
ソースコード
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