This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "robot.h"
#include <bits/stdc++.h>
#define elif else if
using namespace std;
//WSEN
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 n=-2;n<=2;n++){
if (k==-2 && l==-2){
set_instruction({i,j,k,l,n},1,'T');
continue;
}
if (i==0){
set_instruction({i,j,k,l,n},1,'H');
continue;
}
if (i==1){
if (k && l){
set_instruction({i,j,k,l,n},2,'H');
}
elif (k) set_instruction({i,j,k,l,n},1,'E');
else set_instruction({i,j,k,l,n},1,'S');
continue;
}
if (i==2){
if (j==1) set_instruction({i,j,k,l,n},2,'W');
elif (n==1) set_instruction({i,j,k,l,n},2,'N');
}
}
}
}
}
}return;
}
# | 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... |