#include <bits/stdc++.h>
#include "robot.h"
using namespace std;
template <typename T>
using v = vector<T>;
using ll = long long;
using pii = pair<int, int>;
#define rep(i, k, n) for (int i = k; i < n; i++)
#define set_instructions set_instruction
#define cout if(0) cout
map<v<int>, int> mp;
bool not_used(v<int> S) {
bool can = !mp.count(S);
mp[S] = 1;
return can;
}
void program_pulibot() {
v<int> S = {0, 0, -2, -2, 0};
rep(i, -2, 4) {
rep(j, -2, 4) {
S[1] = i;
S[4] = j;
if (not_used(S)) set_instructions(S, 1, 'T');
}
}
S = {0, 0, 0, 0, 0};
rep(i, -2, 4) {
rep(j, -2, 4) {
rep(k, -2, 4) {
S[1] = i;
S[2] = j;
S[4] = k;
if (not_used(S)) set_instructions(S, 1, 'E');
}
}
}
S = {0, 0, 0, 0, 0};
rep(i, -2, 4) {
rep(j, -2, 4) {
rep(k, -2, 4) {
S[1] = i;
S[3] = j;
S[4] = k;
if (not_used(S)) set_instructions(S, 1, 'S');
}
}
}
S = {0, 0, 0, 0, 0};
rep(i, -2, 4) {
rep(j, -2, 4) {
rep(k, -2, 4) {
S[1] = i;
S[2] = j;
S[3] = k;
if (not_used(S)) set_instructions(S, 1, '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... |