結果
| 問題 | No.246 質問と回答 |
| コンテスト | |
| ユーザー |
siman
|
| 提出日時 | 2016-03-28 00:30:21 |
| 言語 | Ruby (3.4.1) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 311 bytes |
| 記録 | |
| コンパイル時間 | 319 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 46,964 KB |
| 最終ジャッジ日時 | 2024-07-16 20:03:15 |
| 合計ジャッジ時間 | 6,771 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 29 |
コンパイルメッセージ
Syntax OK
ソースコード
class Yukicoder
def initialize
a = 1
b = 10 ** 9
while a < b
c = Rational(a+b, 2).ceil
puts "? #{c}"
STDIN.flush
result = gets.to_i
if result > 0
a = c
else
b = c-1
end
end
puts "! #{a}"
STDIN.flush
end
end
Yukicoder.new
siman