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 <bits/stdc++.h>
using namespace std;
using ll = long long;
void program_pulibot() { // {C, W, S, E, N}
// Initial
set_instruction({ 0, -2, 0, 0, -2 }, 1, 'E');
set_instruction({ 0, -2, -1, 0, -2 }, 1, 'E');
set_instruction({ 0, -2, 0, -1, -2 }, 1, 'S');
// Middle
// Row 1
set_instruction({ 0, 1, 0, -1, -2 }, 1, 'S'); // Can't go East
set_instruction({ 0, 0, 1, 0, -2 }, 1, 'E');
set_instruction({ 0, -1, 1, 0, -2 }, 1, 'E');
set_instruction({ 0, 1, 0, 0, -2 }, 1, 'E');
set_instruction({ 0, 1, -1, 0, -2 }, 1, 'E');
// Row 2
set_instruction({ 0, 1, -2, -1, 0 }, 1, 'N'); // Can't go East
set_instruction({ 0, 0, -2, 0, 1 }, 1, 'E');
set_instruction({ 0, 1, -2, 0, 0 }, 1, 'E');
set_instruction({ 0, 1, -2, 0, -1 }, 1, 'E');
set_instruction({ 0, -2, -2, 0, 1 }, 1, 'E');
set_instruction({ 0, -1, -2, 0, 1 }, 1, 'E');
// End
set_instruction({ 0, 1, 0, -2, -2 }, 1, 'S');
for (int i = -1;i <= 1;i++) {
for (int j = -1;j <= 1;j++) {
set_instruction({ 0, i, -2, -2, j }, 1, 'T');
}
}
}
# | 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... |