#include "robot.h"
#include "bits/stdc++.h"
#define pb push_back
#define popb pop_back
#define fi first
#define sc second
#define si(a_) (ll)(a_.size())
#define all(a_) a_.begin(),a_.end()
#define here cerr<<"========================================\n"
#define dbg(X_) cerr<<#X_<<": "<<X_<<endl;
#define ceri(a_,l_,r_) {for(ll i_=l_;i_<=r_;i_++) cerr<<a_[i_]<<" ";cerr<<endl;}
using namespace std;
using ll = int;
void program_pulibot()
{
ll z = 2;
vector<char> ch = {'.','W','S','E','N'};
for(ll w = -2;w<=z;w++){
for(ll s = -2;s<=z;s++){
for(ll e = -2;e<=z;e++){
for(ll n = -2;n<=z;n++){
for(ll g = 0;g<=z;g++){
vector<ll> st = {g,w,s,e,n};
vector<ll> id = {2,3};
if(e==-2&&s==-2){
set_instruction(st,1,'T');
continue;
}
if(g<=2){
for(ll i : id){
if(st[i]==0){
set_instruction(st,1,ch[i]);
goto lol;
}
}
for(ll i : id){
if(st[i]==1){
set_instruction(st,2,ch[i]);
goto lol;
}
}
lol:;
}
}
}
}
}
}
}
# | 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... |