# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
894749 | 2023-12-28T21:25:18 Z | ___ | Guess the number (BOI20_guess) | C++14 | 300 ms | 344 KB |
#include <iostream> using namespace std; int main() { int n; cin>>n; int l=0,r=n+1; while(1) { int m=(r+l)/2,x; cout<<"? "<<m<<endl; cin>>x; if(x==1) { l=m; } else if(x==0) { cout<<"= "<<m; break; } else { r=m; } } return 0; }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 2501 ms | 344 KB | Time limit exceeded (wall clock) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 2501 ms | 344 KB | Time limit exceeded (wall clock) |
2 | Halted | 0 ms | 0 KB | - |