# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1049332 | AIF_is_carving | Robot Contest (IOI23_robot) | C++17 | 0 ms | 0 KiB |
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>
using namespace std;
#include "robot.h"
typedef long long ll;
void set_instruction(std::vector<int> S, int Z, char A){
}
void program_pulibot(){
for(int i = 0; i<=340; i++){
vector<int> s(5, 0);
int x = i;
s[1] = -(x%4) + 1; x/=4;
s[2] = -(x%4) +1; x/=4;
s[3] = -(x%4) +1; x/=4;
s[4] = -(x%4) +1; x/=4;
// for(auto x: s) cout<<x<<" ";
// cout<<"\n";
if(s[3] == 0) set_instruction(s, 1, 'E');
else if(s[2]!=0 && s[4] == 0) set_instruction(s, 1, 'N');
else if(s[2]==0 && s[4] != 0) set_instruction(s, 1, 'S');
else set_instruction(s, 1, 'T');
}
return;
}
int main(){
program_pulibot();
}