이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |