Submission #842505

#TimeUsernameProblemLanguageResultExecution timeMemory
842505enerelt14Robot Contest (IOI23_robot)C++17
15 / 100
112 ms5860 KiB
#include "robot.h" #include <cstdio> using namespace std; 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 l = -2; l <= 2; l++) { if(j == -2 && k == -2) { set_instruction({0, i, j, k, l}, 1, 'T'); continue; } if(!i) { set_instruction({0, i, j, k, l}, 1, 'W'); set_instruction({1, i, j, k, l}, 1, 'W'); continue; } if(!j) { set_instruction({0, i, j, k, l}, 1, 'S'); set_instruction({1, i, j, k, l}, 1, 'S'); continue; } if(!k) { set_instruction({0, i, j, k, l}, 1, 'E'); set_instruction({1, i, j, k, l}, 1, 'E'); continue; } if(!l) { set_instruction({0, i, j, k, l}, 1, 'N'); set_instruction({1, i, j, k, l}, 1, 'N'); continue; } if(i == 1) { set_instruction({0, i, j, k, l}, 2, 'W'); set_instruction({1, i, j, k, l}, 2, 'W'); continue; } if(j == 1) { set_instruction({0, i, j, k, l}, 2, 'S'); set_instruction({1, i, j, k, l}, 2, 'S'); continue; } if(k == 1) { set_instruction({0, i, j, k, l}, 2, 'E'); set_instruction({1, i, j, k, l}, 2, 'E'); continue; } if(l == 1) { set_instruction({0, i, j, k, l}, 2, 'N'); set_instruction({1, i, j, k, l}, 2, 'N'); continue; } } } } } }
#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...