結果

問題 No.3212 SUPER Guess the Number
ユーザー titia
提出日時 2025-07-25 22:04:06
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 322 bytes
コンパイル時間 455 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 28,280 KB
平均クエリ数 24.25
最終ジャッジ日時 2025-07-25 22:04:10
合計ジャッジ時間 3,107 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 8 RE * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

MIN=1
MAX=10**6
mae=MIN
count=0
print("?",MIN,flush=True)


while MIN!=MAX:
    half=(MIN+MAX)//2

    tugi=mae+(half-mae)*2

    print("?",tugi,flush=True)   

    ANS=int(input())

    if ANS==1:
        MIN=half
    else:
        MAX=half

    mae=tugi

print("!",MIN,flush=True)
0