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 <cassert>
#include <string>
#include <fstream>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <vector>
using namespace std;
#define vi vector<int>
void program_pulibot()
{
/*set_instruction({0, -2, 0, 0, -2}, 1, 'S');
set_instruction({ 0, -2, 0, 0, 1 }, 1, 'S');
set_instruction({ 0, -2, -2, 0, 1 }, 1, 'E');
set_instruction({ 0, 1, -2, 0, 0 }, 1, 'E');
set_instruction({ 0, 1, -2, -2, 0 }, 1, 'T');*/
for (int i = -2; i < 20; i++) {
for (int j = -2; j < 20; j++) {
set_instruction({ 0,i,-2,-2,j }, 1, 'T');
}
}
for (int a = -2; a <= 6; a++) {
for (int b = -2; b <= 6; b++) {
for (int c = -2; c <= 6; c++) {
for (int d = -2; d <= 6; d++) {
for (int e = -2; e <= 6; e++) {
vi v = {a,b,c,d,e};
if (c == -2 && d == -2)continue;
else if (b == 0)set_instruction(v, 1, 'W');
else if (c == 0)set_instruction(v, 1, 'S');
else if (d == 0)set_instruction(v, 1, 'E');
else if (e == 0)set_instruction(v, 1, 'N');
else {
//v,6
if (b == 1)set_instruction(v, 6, 'W');
if (c == 1)set_instruction(v, 6, 'S');
if (d == 1)set_instruction(v, 6, 'E');
if (e == 1)set_instruction(v, 6, 'N');
}
}
}
}
}
}
}
# | 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... |