#include #include using namespace std; #include using namespace atcoder; using ll = long long; int N; void solve(){ ll ok = 1,ng = N; while(abs(ok-ng)>1){ ll mid = (ok+ng)/2; ll in; cout<< "? " << mid << endl; cout<< flush; cin >> in; if(in == mid) { ok = mid; } else{ ng = mid; } } cout<<"Yes "<> N; solve(); }