题解:P16457 [UOI 2026] Guess the Number
由于
接下来我们考虑二分
ll V=1e16;
ll ask(ll x){cout<<"? "<<x<<endl;return rd();}
bool chk(ll Mid){return ask(V/Mid+(V%Mid!=0))==1;}
void solve()
{
ll x=ask(1),L=x*1e7,R=(x+1)*1e7-1;
while(L<R)
{
ll Mid=(L+R+1)/2;
if(chk(Mid))
L=Mid;
else
R=Mid-1;
}
while(L%10==0)
L/=10;
cout<<"! "<<L<<endl;
}