結果
| 問題 | No.246 質問と回答 |
| コンテスト | |
| ユーザー |
taba
|
| 提出日時 | 2016-04-16 04:30:12 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 166 ms / 2,000 ms |
| コード長 | 268 bytes |
| 記録 | |
| コンパイル時間 | 252 ms |
| コンパイル使用メモリ | 77,628 KB |
| 最終ジャッジ日時 | 2025-12-03 20:24:22 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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