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