結果
| 問題 | No.246 質問と回答 |
| コンテスト | |
| ユーザー |
taba
|
| 提出日時 | 2016-04-16 04:30:12 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 160 ms / 2,000 ms |
| + 2µs | |
| コード長 | 268 bytes |
| 記録 | |
| コンパイル時間 | 70 ms |
| コンパイル使用メモリ | 80,896 KB |
| 実行使用メモリ | 80,932 KB |
| 平均クエリ数 | 31.30 |
| 最終ジャッジ日時 | 2026-07-18 05:30:59 |
| 合計ジャッジ時間 | 4,496 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
import sys
def request(s):
print s
sys.stdout.flush()
return raw_input()
l=1
h=int(10**9)
while h-l>1:
m=(l+h)/2
r=request("? "+`m`)
if r=="0":
h=m-1
else:
l=m
#print l,h
r=request("? "+`h`)
if r=="1":
print"! "+`h`
else:
print"! "+`l`
sys.stdout.flush()
taba