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;
int b[10];
const int d[] = {3,2,1,4};
char f[] = {'!','W','S','E','N'};
void go(int v) {
if(v == 6) {
vector<int> s;
for(int i = 0;i < v;i++) {
s.push_back(b[i]);
}
if(s[2] == -2 && s[3] == -2) {
set_instruction(s,1,'T');
return;
}
for(int i:d) {
if(s[i] == 0) {
set_instruction(s,f[i],1);
return;
}
}
set_instruction(s,1,'W');
} else {
for(int i = -2;i <= 2;i++) {
b[v] = i;
go(v + 1);
}
}
}
void program_pulibot() {
go(0);
}
# | 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... |