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 i = -2; i <= 2; ++i)
{
for (int j = -2; j <= 2; ++j)
{
for (int k = -2; k <= 2; ++k)
{
for (int t = -2; t <= 2; ++t)
{
if(k==-2&&j==-2) {
set_instruction({0,i,j,k,t},1,'T');
}
else if(j!=0&&k!=0){
set_instruction({0,i,j,k,t},2,(i==0 ? 'W' : 'N'));
set_instruction({1,i,j,k,t},2,(i==0 ? 'W' : 'N'));
}else if(j==0&&k==0){
set_instruction({0,i,j,k,t},1,'S');
set_instruction({1,i,j,k,t},1,'E');
}else if(k==0){
set_instruction({0,i,j,k,t},1,'E');
}else if(j==0){
set_instruction({0,i,j,k,t},1,'S');
}
}
}
}
}
}
# | 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... |