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