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 <vector>
using namespace std;
void set_from_states(int curr, int west, int south, int east, int north){
vector<int> states{curr, west, south, east, north};
if(east == -2 && south == -2){
set_instruction(states, 1, 'T');
return;
}
if(east == 0){
set_instruction(states, 1, 'E');
return;
}
if(south == 0){
set_instruction(states, 1, 'S');
return;
}
if(north == 0){
set_instruction(states, 1, 'N');
return;
}
}
void program_pulibot()
{
for(int curr = 0; curr < 1; ++curr){
for(int east = -2; east < 2; ++east){
for(int south = -2; south < 2; ++south){
for(int north = -2; north < 2; ++north){
for(int west = -2; west < 2; ++west){
set_from_states(curr, west, south, east, north);
}
}
}
}
}
}
# | 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... |