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 <bits/stdc++.h>
#include "robot.h"
using namespace std;
using ll = long long;
ll n, m, q, k, x, y, a, b, c, l;
set< vector<int> > st;
void set_any(vector<int> v, int z, int a) {
// for (auto i : v) {
// cout << i << ' ';
// }
// cout << endl;
for (int i = 0; i < 5; i++) {
if (v[i] == -3) {
for (int j = -2; j <= 1; j++) {
v[i] = j;
set_any(v, z, a);
}
v[i] = -3;
return;
}
}
if (!st.count(v)) {
set_instruction(v, z, a);
st.insert(v);
}
}
void program_pulibot() {
set_any({-3, -3, -2, -2, -3}, 1, 'T');
set_any({-3, -3, -3, 0, -3}, 1, 'E');
set_any({-3, -3, 0, -3, -3}, 1, 'S');
set_any({-3, -3, -3, -3, 0}, 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... |