Submission #1068445

#TimeUsernameProblemLanguageResultExecution timeMemory
1068445amirhoseinfar1385Robot Contest (IOI23_robot)C++17
18 / 100
199 ms6120 KiB
#include "robot.h" #include<bits/stdc++.h> using namespace std; void program_pulibot() { for(int khod=0;khod<=6;khod++){ for(int chap=-2;chap<=6;chap++){ for(int paee=-2;paee<=6;paee++){ for(int rast=-2;rast<=6;rast++){ for(int bal=-2;bal<=6;bal++){ vector<int>v={khod,chap,paee,rast,bal}; if(khod==0||khod==2){ if(chap==0){ set_instruction(v,2,'W'); continue; } if(paee==0){ set_instruction(v,2,'S'); continue; } if(rast==0){ set_instruction(v,2,'E'); continue; } if(bal==0){ set_instruction(v,2,'N'); continue; } int z=3; if((paee==-2&&rast==-2)||max(max(chap,rast),max(paee,bal))==4){ z=4; } if(chap==2){ set_instruction(v,z,'W'); continue; } if(paee==2){ set_instruction(v,z,'S'); continue; } if(rast==2){ set_instruction(v,z,'E'); continue; } if(bal==2){ set_instruction(v,z,'N'); continue; } set_instruction(v,z,'H'); }else if(khod==3||khod==5){ if(chap==3){ set_instruction(v,5,'W'); continue; } if(paee==3){ set_instruction(v,5,'S'); continue; } if(rast==3){ set_instruction(v,5,'E'); continue; } if(bal==3){ set_instruction(v,5,'N'); continue; } if(chap!=0&&chap>=0){ set_instruction(v,0,'W'); continue; } if(paee!=0&&paee>=0){ set_instruction(v,0,'S'); continue; } if(rast!=0&&rast>=0){ set_instruction(v,0,'E'); continue; } if(bal!=0&&bal>=0){ set_instruction(v,0,'N'); continue; } }else{ if(chap==3){ set_instruction(v,6,'W'); continue; } if(paee==3){ set_instruction(v,6,'S'); continue; } if(rast==3){ set_instruction(v,6,'E'); continue; } if(bal==3){ set_instruction(v,6,'N'); continue; } if(chap==4){ set_instruction(v,1,'W'); continue; } if(paee==4){ set_instruction(v,1,'S'); continue; } if(rast==4){ set_instruction(v,1,'E'); continue; } if(bal==4){ set_instruction(v,1,'N'); continue; } set_instruction(v,1,'T'); } } } } } } // set_instruction({0, -2, -1, 0, -2}, 1, 'E'); // set_instruction({0, 1, -1, 0, -2}, 1, 'E'); // set_instruction({0, 1, 0, -2, -2}, 1, 'S'); // set_instruction({0, -1, -2, -2, 1}, 1, 'T'); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...