# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
596349 | angelo_torres | Aliens (IOI07_aliens) | C++17 | 2 ms | 296 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;
typedef pair<int,int> ii;
typedef vector<ii> vii;
// x0 y0;
int n,m,xo,yo;
int xr,xl,yr,yl;
vii goh(int nx,int ny){
vii rp = {{nx,ny}};
for(int i = 1; (nx + i*m <= n and i <= 2); ++i){
cout << "examine " << nx + i*m << " " << ny << endl;
string ans; cin >> ans;
if(ans == "true")
rp.push_back({nx+i*m,ny});
}
for(int i = 1; (nx - i*m >= 1 and i <= 2); ++i){
cout << "examine " << nx - i*m << " " << ny << endl;
string ans; cin >> ans;
if(ans == "true")
rp.push_back({nx-i*m,ny});
}
sort(rp.begin(),rp.end());
return rp;
}
vii gov(int nx,int ny){
# | 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... |