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 "robot.h"
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
void debug_out() {cerr<<endl;}
template <typename Head, typename... Tail>
void debug_out(Head _H, Tail... _T) {cerr<<" "<<to_string(_H);debug_out(_T...);}
#define debug(...) cerr<<"["<<#__VA_ARGS__<<"]:",debug_out(__VA_ARGS__)
#else
#define debug(...)
#endif
const int MAXN = -1;
const int inf=1000000500ll;
const long long oo =1000000000000000500ll;
const int MOD = (int)1e9+7;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
typedef pair<int,int> pi;
void program_pulibot()
{
for(int north=-2;north<=1;north++){
for(int west=-2;west<=1;west++){
for(int south=-2;south<=1;south++){
for(int here=-2;here<=1;here++){
set_instruction({here,west,south,0,north},1,'E'); // move east if possible
}
}
}
}
for(int north=-2;north<=1;north++){
for(int west=-2;west<=1;west++){
for(int east=-2;east<=1;east++){
for(int here=-2;here<=1;here++){
if(east == 0)continue; // go east instead
set_instruction({here,west,0,east,north},1,'W');
}
}
}
}
for(int north=-2;north<=1;north++){
for(int west=-2;west<=1;west++){
for(int east=-2;east<=1;east++){
for(int south=-2;south<=1;south++){
for(int here=-2;here<=1;here++){
if(east == 0)continue; // go east instead
if(south==0)continue;
set_instruction({here,west,south,east,north},1,'T');
}
}
}
}
}
}
# | 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... |