# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
852673 | fve5 | Robot Contest (IOI23_robot) | C++17 | 110 ms | 6484 KiB |
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 <utility>
#include <vector>
#include "robot.h"
using namespace std;
#define NORTH 3
#define EAST 4
#define SOUTH 5
#define WEST 6
pair<int, char> instr(int C, int N, int E, int S, int W) {
if (C == 0 && N == -2 && W == -2) {
return {NORTH, 'H'};
}
if (C == NORTH || C == EAST || C == SOUTH || C == WEST) {
return {1, 'H'};
}
if (S == -2 && E == -2) {
return {1, 'T'};
}
if (C == 1) {
if (N == 0 || N == SOUTH) {
return {1, 'N'};
}
if (E == 0 || E == WEST) {
return {1, '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... |