#include "robot.h"
void program_pulibot()
{
for(int i = -2; i<=2; i++){
for(int j = -2; j<=2; j++){
for(int k = -2; k<=2; k++){
for(int l = -2; l <= 2; l++)for(int t = 0; t<=1; t++){
if(j == -2 && k == -2){
set_instruction({t, i, j, k, l}, 1, 'T');
}
else if(k == 0){
set_instruction({t, i, j, k, l}, 1, 'E');
}
else if(j == 0){
set_instruction({t, i, j, k, l}, 1, 'S');
}
else if(l == 0){
set_instruction({t, i, j, k, l}, 1, 'N');
}
else if(i == 0){
set_instruction({t, i, j, k, l}, 1, 'W');
}
else if(k == 1){
set_instruction({t, i, j, k, l}, 2, 'E');
}
else if(j == 1){
set_instruction({t, i, j, k, l}, 2, 'S');
}
else if(l == 1){
set_instruction({t, i, j, k, l}, 2, 'N');
}
else if(i == 1){
set_instruction({t, i, j, k, l}, 2, 'W');
}
}
}
}
}
/*
set_instruction({0, -2, 0, 0, -2}, 1, 'E');
set_instruction({0, 1, 0, 0, -2}, 1, 'E');
set_instruction({0, 1, 0, -2, -2}, 1, 'S');
set_instruction({0, 0, 0, -2, 1}, 1, 'S');
set_instruction({0, 0, -2, -2, 1}, 1, 'T');
*/
}
# | 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... |