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"
void program_pulibot(){
for(int x=0;x<2;x++){
for(int a=-2;a<=2;a++){
for(int b=-2;b<=2;b++){
for(int c=-2;c<=2;c++){
for(int d=-2;d<=2;d++){
if(b==-2&&c==-2) set_instruction({x,a,b,c,d},1,'T');
else if(c==0) set_instruction({x,a,b,c,d},1,'E');
else if(b==0) set_instruction({x,a,b,c,d},1,'S');
else if(d==0) set_instruction({x,a,b,c,d},1,'N');
else if(a==0) set_instruction({x,a,b,c,d},1,'W');
else{
if(c==1) set_instruction({x,a,b,c,d},2,'E');
else if(b==1) set_instruction({x,a,b,c,d},2,'S');
else if(d==1) set_instruction({x,a,b,c,d},2,'N');
else set_instruction({x,a,b,c,d},2,'W');
}
}
}
}
}
}
}
# | 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... |