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"
const char* direction = "WSENH";
const int blank = 0;
const int chain = 1;
const int left = 2;
const int down = 3;
const int right = 4;
const int up = 5;
const int complete = 6;
void program_pulibot()
{
for (int s1 = -2; s1 <= 6; s1++) {
for (int s2 = -2; s2 <= 6; s2++) {
for (int s3 = -2; s3 <= 6; s3++) {
for (int s4 = -2; s4 <= 6; s4++) {
for (int s5 = -2; s5 <= 6; s5++) {
if (s4 == -2) {
if (s3 == -2) {
set_instruction({s1, s2, s3, s4, s5}, 1, 'T');
} else {
set_instruction({s1, s2, s3, s4, s5}, 1, 'S');
}
} else {
set_instruction({s1, s2, s3, s4, s5}, 1, 'E');
}
}
}
}
}
}
}
# | 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... |