Submission #1238773

#TimeUsernameProblemLanguageResultExecution timeMemory
1238773nikulidRobot Contest (IOI23_robot)C++20
10 / 100
67 ms5448 KiB
#include "robot.h" void program_pulibot() { // here, LEFT, DOWN, RIGHT, UP... set_instruction({0, -2, -1, 0, -2}, 1, 'E'); set_instruction({0, -2, 0, 0, -2}, 1, 'E'); set_instruction({0, -2, 0, -1, -2}, 1, 'S'); // (we like to stick to the top) set_instruction({0, 1, -1, 0, -2}, 1, 'E'); // we came from west set_instruction({0, 1, 0, 0, -2}, 1, 'E'); // we came from west set_instruction({0, -1, 1, 0, -2}, 1, 'E'); // we came from south set_instruction({0, 0, 1, 0, -2}, 1, 'E'); // (we cannot stick to the top) set_instruction({0, 1, 0, -1, -2}, 1, 'S'); // we came from west set_instruction({0, 1, 0, -2, -2}, 1, 'S'); // we're at the right wall :) // (we are at the bottom) set_instruction({0, 0, -2, 0, 1}, 1, 'E'); // we came from north set_instruction({0, -1, -2, 0, 1}, 1, 'E'); // we came from north set_instruction({0, 1, -2, 0, -1}, 1, 'E'); // we came from west set_instruction({0, -2, -2, 0, 1}, 1, 'E'); // (we can go back up) set_instruction({0, 1, -2, 0, 0}, 1, 'E'); // we came from the west set_instruction({0, 1, -2, -1, 0}, 1, 'N'); // not like we can even go east anymore // (when to terminate) set_instruction({0, 1, -2, -2, 0}, 1, 'T'); set_instruction({0, 0, -2, -2, 1}, 1, 'T'); set_instruction({0, -1, -2, -2, 1}, 1, 'T'); 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...