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 now=0;now<=2;now++){
for(int W=-2;W<=2;W++){
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){
set_instruction({now,W,S,E,N},1,'T');
}
else if(E==0){
set_instruction({now,W,S,E,N},1,'E');
}
else if(S==0){
set_instruction({now,W,S,E,N},1,'S');
}
else if(N==0){
set_instruction({now,W,S,E,N},1,'N');
}
else if(W==0){
set_instruction({now,W,S,E,N},1,'W');
}
else if(W==1){
set_instruction({now,W,S,E,N},2,'W');
}
else if(S==1){
set_instruction({now,W,S,E,N},2,'S');
}
else if(E==1){
set_instruction({now,W,S,E,N},2,'E');
}
else if(N==1){
set_instruction({now,W,S,E,N},2,'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... |