#include "robot.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void set_instruction(int a, int b, int c, int d, int e, int z, char A){
set_instruction(vector<int> {a, b, c, d, e}, z, A);
}
void program_pulibot(){
for(int now=-2; now<=1; now++){
for(int l=-2; l<=1; l++){
for(int d=-2; d<=1; d++){
for(int r=-2; r<=1; r++){
for(int u=-2; u<=1; u++){
if(r==-2 && d==-2){ /// 마지막 칸
set_instruction(now, l, d, r, u, 1, 'T');
}
else if(r < 0){ /// 오른쪽이 막힘
if(u==-2) set_instruction(now, l, d, r, u, 1, 'S');
else set_instruction(now, l, d, r, u, 1, 'N');
}
else set_instruction(now, l, d, r, u, 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... |