結果

問題 No.246 質問と回答
コンテスト
ユーザー yuki2006
提出日時 2015-07-13 11:45:37
言語 PyPy2
(7.3.15)
結果
WA  
実行時間 -
コード長 222 bytes
記録
コンパイル時間 125 ms
コンパイル使用メモリ 77,188 KB
最終ジャッジ日時 2025-12-03 15:49:52
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 30
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys

A = 0
B = 10 ** 9 + 1

while B - A > 1:
    c = (A + B) // 2
    print "? %d" % c
    sys.stdout.flush()
    response = raw_input()

    if response == 1:
        A = c
    else:
        B = c
print "! %d" % A
0