#include "robot.h"
#include <bits/stdc++.h>
//actual
//oeste
//sur
//este
//norte
void create(int ac,int oe,int su,int es,int no){
int con=0;
bool ok1=false,ok2=false,ok3=false,ok4=false;
if(oe==0){
set_instruction({ac,oe,su,es,no},1,'W');
con++;
}
else if(es==0){
set_instruction({ac,oe,su,es,no},1,'E');
con++;
}
else if(su==0){
set_instruction({ac,oe,su,es,no},1,'S');
con++;
}
else if(no==0){
set_instruction({ac,oe,su,es,no},1,'N');
con++;
}
else if(con==0){
set_instruction({ac,oe,su,es,no},1,'T');
}
}
void program_pulibot()
{
for (int a = -2; a <= 5; a++) {
for (int b = -2; b <= 5; b++) {
for (int c = -2; c <= 5; c++) {
for (int d = -2; d <= 5; d++) {
for (int e = -2; e <= 5; e++) {
create(a,b,c,d,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... |