Submission #844115

#TimeUsernameProblemLanguageResultExecution timeMemory
844115AndreyRobot Contest (IOI23_robot)C++17
24 / 100
100 ms6328 KiB
#include "robot.h" #include<bits/stdc++.h> using namespace std; void program_pulibot() { for(int i = -2; i <= 7; i++) { for(int j = -2; j <= 7; j++) { for(int a = -2; a <= 7; a++) { for(int b = -2; b <= 7; b++) { for(int c = 0; c <= 7; c++) { if(j == -2 && a == -2) { set_instruction({c,i,j,a,b},1,'T'); } else { if(c > 2) { if(i > 2) { set_instruction({c,i,j,a,b},0,'W'); } else if(j > 2) { set_instruction({c,i,j,a,b},0,'S'); } else if(a > 2) { set_instruction({c,i,j,a,b},0,'E'); } else if(b > 2) { set_instruction({c,i,j,a,b},0,'N'); } else { if(c == 3) { if(i == 0) { set_instruction({c,i,j,a,b},1,'W'); } else { set_instruction({c,i,j,a,b},4,'H'); } } else if(c == 4) { if(j == 0) { set_instruction({c,i,j,a,b},1,'S'); } else { set_instruction({c,i,j,a,b},5,'H'); } } else if(c == 5) { if(a == 0) { set_instruction({c,i,j,a,b},1,'E'); } else { set_instruction({c,i,j,a,b},6,'H'); } } else if(c == 6) { if(b == 0) { set_instruction({c,i,j,a,b},1,'N'); } else { set_instruction({c,i,j,a,b},7,'H'); } } else if(c == 7) { if(i == 1) { set_instruction({c,i,j,a,b},6,'W'); } else if(j == 1) { set_instruction({c,i,j,a,b},7,'S'); } else if(a == 1) { set_instruction({c,i,j,a,b},4,'E'); } else if(b == 1) { set_instruction({c,i,j,a,b},5,'N'); } } } } else if(i > 2) { set_instruction({c,i,j,a,b},i,'W'); } else if(j > 2) { set_instruction({c,i,j,a,b},j,'S'); } else if(a > 2) { set_instruction({c,i,j,a,b},a,'E'); } else if(b > 2) { set_instruction({c,i,j,a,b},b,'N'); } else if(i == 0) { set_instruction({c,i,j,a,b},1,'W'); } else if(j == 0) { set_instruction({c,i,j,a,b},1,'S'); } else if(a == 0) { set_instruction({c,i,j,a,b},1,'E'); } else if(b == 0) { set_instruction({c,i,j,a,b},1,'N'); } else { if(i == 1) { set_instruction({c,i,j,a,b},6,'W'); } else if(j == 1) { set_instruction({c,i,j,a,b},7,'S'); } else if(a == 1) { set_instruction({c,i,j,a,b},4,'E'); } else if(b == 1) { set_instruction({c,i,j,a,b},5,'N'); } } } } } } } } }
#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...