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"
#include <cstdio>
using namespace std;
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 l = -2; l <= 2; l++) {
if(j == -2 && k == -2) {
set_instruction({0, i, j, k, l}, 1, 'T');
continue;
}
if(!j) {
set_instruction({0, i, j, k, l}, 1, 'S');
set_instruction({1, i, j, k, l}, 1, 'S');
continue;
}
if(!k) {
set_instruction({0, i, j, k, l}, 1, 'E');
set_instruction({1, i, j, k, l}, 1, 'E');
continue;
}
if(i == 1) {
set_instruction({0, i, j, k, l}, 2, 'W');
set_instruction({1, i, j, k, l}, 2, 'W');
continue;
}
if(l == 1) {
set_instruction({0, i, j, k, l}, 2, 'N');
set_instruction({1, i, j, k, l}, 2, 'N');
continue;
}
}
}
}
}
}
# | 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... |