結果
| 問題 | No.246 質問と回答 |
| コンテスト | |
| ユーザー |
syunsuke
|
| 提出日時 | 2020-09-18 21:32:14 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 380 bytes |
| 記録 | |
| コンパイル時間 | 138 ms |
| コンパイル使用メモリ | 82,212 KB |
| 実行使用メモリ | 83,816 KB |
| 平均クエリ数 | 31.00 |
| 最終ジャッジ日時 | 2024-07-17 06:58:42 |
| 合計ジャッジ時間 | 5,354 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 30 |
ソースコード
import sys
Max=10**9+7
Min=0
while Max - Min>4:
Mid = (Max + Min)//2
print("? "+str(Mid))
sys.stdout.flush()
res = int(input())
if res == 1:
Min=Mid
else:
Max=Mid
for i in range(Min,Max+10):
print("? "+str(i))
sys.stdout.flush()
res = int(input())
if res == 1:
print("! "+str(i))
sys.stdout.flush()
syunsuke