# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
255195 | a_player | Guess the number (BOI20_guess) | C++14 | 1 ms | 256 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |