Submission #1080696

#TimeUsernameProblemLanguageResultExecution timeMemory
1080696MarwenElarbiRobot Contest (IOI23_robot)C++17
6 / 100
115 ms5712 KiB
#include "robot.h" 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 t = -2; t <= 2; ++t) { if(k==-2&&j==-2) { set_instruction({0,i,j,k,t},1,'T'); } else if(j!=0&&k!=0){ set_instruction({0,i,j,k,t},2,(i==0 ? 'W' : 'N')); set_instruction({1,i,j,k,t},2,(i==0 ? 'W' : 'N')); }else if(j==0&&k==0){ set_instruction({0,i,j,k,t},1,'E'); set_instruction({1,i,j,k,t},1,'S'); }else if(k==0){ set_instruction({0,i,j,k,t},1,'E'); }else if(j==0){ set_instruction({0,i,j,k,t},1,'S'); } } } } } }
#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...