# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
78627 | Vardanyan | Aliens (IOI07_aliens) | C++14 | 4 ms | 572 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 ask(long long x,long long y){
cout<<"examine "<<x<<" "<<y<<endl;
fflush(stdout);
string s;
cin>>s;
if(s == "true") return true;
return false;
}
int main(){
long long n,x0,y0;
cin>>n>>x0>>y0;
long long jmp = 1;
long long l,r,up,down;
while(1){
if(x0+jmp<=n){
if(ask(x0+jmp,y0)){
jmp*=2;
continue;
}
break;
}
else break;
}
long long x0_right = x0+jmp;
long long lo = x0;
long long hi = x0_right;
r = x0;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |