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;
#define FOR(i,a,b) for(int i=(a),_##i##_b=(b); i<=_##i##_b; i++)
void program_pulibot() {
// subtask 1
FOR(cur,0,0) FOR(west,-2,0) FOR(south,-2,0) FOR(east,-2,0) FOR(north,-2,0) {
vector<int> state {cur, west, south, east, north};
if (south == -2 && east == -2) {
set_instruction(state, 0, 'T');
} else if (east == -2) {
set_instruction(state, 0, 'S');
} else {
set_instruction(state, 0, 'E');
}
}
}
# | 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... |