제출 #255195

#제출 시각아이디문제언어결과실행 시간메모리
255195a_playerGuess the number (BOI20_guess)C++14
0 / 100
1 ms256 KiB
#include <bits/stdc++.h> using namespace std; bool check(int t){ cout<<"? "<<t<<endl; int h; cin>>h; return h<1; } int main(){ int x=-1; for(int b=1e9+9;b>=1;b/=2) while(check(x+b))x+=b; cout<<"= "<<x; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...