#include #include using namespace std; #include using namespace atcoder; using ll = long long; int N; void solve(){ ll ok = 1,ng = N; for(int _ = 0;_<10;_++){ 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(); }