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<bits/stdc++.h>
#include "robot.h"
using namespace std;
#define ll long long
#define pb push_back
#define ff first
#define ss second
#define all(s) s.begin(),s.end()
#define rall(s) s.rbegin(),s.rend()
//west-zuun
//south-dood
//east-baruun
//north-deed
void program_pulibot(){
for(int w=-2;w<2;w++){
for(int s=-2;s<2;s++){
for(int e=-2;e<1;e++){
for(int n=-2;n<=0;n++){
if(s==-2&&e==-2){
set_instruction({0,w,s,e,n},1,'T');
}
else if(e<0){
if(s==-2&&n!=-2){
set_instruction({0,w,s,e,n},1,'N');
}
if(s!=-2&&n==-2){
set_instruction({0,w,s,e,n},1,'S');
}
}
else{
set_instruction({0,w,s,e,n},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... |