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;
// https://oj.uz/problem/view/IOI23_robot
char dir(int left, int down, int right, int up) {
if (right == -2 && down == -2) return 'T';
if (right == 0) return 'E';
if (down == 0) return 'S';
if (left == 0) return 'W';
if (up == 0) return 'N';
return 'T';
}
void program_pulibot() {
vector<int> states = { -2, -1, 0, 1 };
for (int l : states)
for (int d : states)
for (int r : states)
for (int u : states) {
set_instruction({ 0, l, d, r, u }, 1, dir(l, d, r, u));
}
}
# | 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... |