Submission #1247022

#TimeUsernameProblemLanguageResultExecution timeMemory
1247022linusvdvRobot Contest (IOI23_robot)C++20
16 / 100
67 ms5588 KiB
#include "robot.h" void program_pulibot() { // always if possible to the east for (int a = -2; a < 2; a++) { for (int b = -2; b < 2; b++) { for (int c = -2; c < 2; c++) { set_instruction({0, a, b, 0, c}, 1, 'E'); } } } // if east is closed than south for (int a = -2; a < 2; a++) { for (int b = -2; b < 2; b++) { for (int c = -2; c < 2; c++) { if (b == 0) continue; set_instruction({0, a, 0, b, c}, 1, 'S'); } } } // north set_instruction({0, 1, -1, -1, 0}, 1, 'N'); set_instruction({0, 1, -1, -2, 0}, 1, 'N'); set_instruction({0, 1, -2, -1, 0}, 1, 'N'); set_instruction({0, -1, -1, -1, 0}, 1, 'N'); set_instruction({0, -1, -1, -2, 0}, 1, 'N'); set_instruction({0, -1, -2, -1, 0}, 1, 'N'); set_instruction({0, -2, -1, -1, 0}, 1, 'N'); set_instruction({0, -2, -1, -2, 0}, 1, 'N'); set_instruction({0, -2, -2, -1, 0}, 1, 'N'); // terminate at the end position for (int a = -2; a < 2; a++) { for (int b = -2; b < 2; b++) { set_instruction({0, a, -2, -2, b}, 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...