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