이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "robot.h"
void program_pulibot(){
for(int W = -2; W <= 2; ++W){
for(int S = -2; S <= 2; ++S){
for(int E = -2; E <= 2; ++E){
for(int N = -2; N <= 2; ++N){
if(S == -2 && E == -2)set_instruction({0,W,S,E,N},1,'T');
else if(E == 0){
set_instruction({0,W,S,E,N},1,'E');
set_instruction({1,W,S,E,N},1,'E');
}
else if(S == 0){
set_instruction({0,W,S,E,N},1,'S');
set_instruction({1,W,S,E,N},1,'S');
}
else if(N == 0){
set_instruction({0,W,S,E,N},1,'N');
set_instruction({1,W,S,E,N},1,'N');
}
else if(W == 0){
set_instruction({0,W,S,E,N},1,'W');
set_instruction({1,W,S,E,N},1,'W');
}
else if(E == 1){
set_instruction({0,W,S,E,N},2,'E');
set_instruction({1,W,S,E,N},2,'E');
}
else if(S == 1){
set_instruction({0,W,S,E,N},2,'E');
set_instruction({1,W,S,E,N},2,'E');
}
else if(N == 1){
set_instruction({0,W,S,E,N},2,'N');
set_instruction({1,W,S,E,N},2,'N');
}
else if(W == 1){
set_instruction({0,W,S,E,N},2,'W');
set_instruction({1,W,S,E,N},2,'W');
}
}
}
}
}
}
# | 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... |