#include "robot.h"
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define loop(n, i) for (int i = 0; i < n; i++)
#define ALL(x) begin(x), end(x)
#define sz(x) (int)x.size()
typedef set<int> si;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef set<ii> sii;
typedef vector<ii> vii;
int max_col = 2;
void program_pulibot()
{
for (int c = 0; c <= max_col; c++)
{
for (int w = -2; w <= max_col; w++)
{
for (int s = -2; s <= max_col; s++)
{
for (int e = -2; e <= max_col; e++)
{
for (int n = -2; n <= max_col; n++)
{
if (s == -2 && e == -2)
set_instruction({c, w, s, e, n}, 1, 'T');
else if (e >= 0)
set_instruction({c, w, s, e, n}, 1, 'E');
else if (s >= 0)
set_instruction({c, w, s, e, n}, 1, 'S');
else if (n == 0)
set_instruction({c, w, s, e, n}, 1, 'N');
else
set_instruction({c, w, s, e, n}, 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... |