#include #include #include #include #include #include #define rep(i,n) for(int i=0;i>res; sa=max(y1-y,y-y1)/2; if(sa<=1) break; y1=y; if(res){ y=sa+y; }else{ y=y-sa; } } //cout<<"この段階での "<<"res="<>res; } y--; }else{ while(res==0){ y--; cout<<"? "<>res; } } cout<<"! "<