#include "robot.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void program_pulibot(){
for(int x1=-2; x1<=2; x1++){
for(int x2=-2; x2<=2; x2++){
set_instruction({0,x1,-2,-2,x2},1,'T');
}
}
for(int c=0; c<=1; c++){
for(int s=-2; s<=2; s++){
for(int e=-2; e<=2; e++){
for(int n=-2; n<=2; n++){
if(s==-2 && e==-2) continue;
set_instruction({c,0,s,e,n},1,'W');
}
}
}
}
for(int c=0; c<=1; c++){
for(int w=-2; w<=2; w++){
if(w==0) continue;
for(int e=-2; e<=2; e++){
for(int n=-2; n<=2; n++){
set_instruction({c,w,0,e,n},1,'S');
}
}
}
}
for(int c=0; c<=1; c++){
for(int w=-2; w<=2; w++){
if(w==0) continue;
for(int s=-2; s<=2; s++){
if(s==0) continue;
for(int n=-2; n<=2; n++){
set_instruction({c,w,s,0,n},1,'E');
}
}
}
}
for(int c=0; c<=1; c++){
for(int w=-2; w<=2; w++){
if(w==0) continue;
for(int s=-2; s<=2; s++){
if(s==0) continue;
for(int e=-2; e<=2; e++){
if(e==0 || (s==-2 && e==-2)) continue;
set_instruction({c,w,s,e,0},1,'N');
}
}
}
}
for(int c=0; c<=1; c++){
for(int w=-2; w<=2; w++){
if(w==0) continue;
for(int s=-2; s<=2; s++){
if(s==0) continue;
for(int e=-2; e<=2; e++){
if(e==0) continue;
for(int n=-2; n<=2; n++){
if(n==0 || (s==-2 && e==-2)) continue;
set_instruction({c,w,s,e,n},2,'H');
}
}
}
}
}
for(int s=-2; s<=2; s++){
for(int e=-2; e<=2; e++){
for(int n=-2; n<=2; n++){
if(s==-2 && e==-2) continue;
set_instruction({2,1,s,e,n},1,'W');
}
}
}
for(int w=-2; w<=2; w++){
if(w==0 || w==1) continue;
for(int e=-2; e<=2; e++){
for(int n=-2; n<=2; n++){
set_instruction({2,w,1,e,n},1,'S');
}
}
}
for(int w=-2; w<=2; w++){
if(w==0 || w==1) continue;
for(int s=-2; s<=2; s++){
if(s==0 || s==1) continue;
for(int n=-2; n<=2; n++){
set_instruction({2,w,s,1,n},1,'E');
}
}
}
for(int w=-2; w<=2; w++){
if(w==0 || w==1) continue;
for(int s=-2; s<=2; s++){
if(s==0 || s==1) continue;
for(int e=-2; e<=2; e++){
if(e==0 || e==1 || (s==-2 && e==-2)) continue;
set_instruction({2,w,s,e,1},1,'N');
}
}
}
}
# | 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... |