제출 #904070

#제출 시각아이디문제언어결과실행 시간메모리
904070LudisseyRobot Contest (IOI23_robot)C++17
0 / 100
105 ms5652 KiB
#include "robot.h"

void program_pulibot()
{
    //              H   W   S   E   N
    //start
    set_instruction({0, -2, 0, 0, -2}, 1, 'E');
    set_instruction({0, -2, -1, 0, -2}, 1, 'E');
    set_instruction({0, -2, 0, -2, -2}, 1, 'S');
    set_instruction({0, -2, 0, -1, -2}, 1, 'S');
    set_instruction({0, -2, -2, 0, 1}, 1, 'E');

    //right with no obstacle
    //up
    set_instruction({0, 1, 0, 0, -2}, 1, 'E');
    set_instruction({0, -1, 1, 0, -2}, 1, 'E');
    set_instruction({0, 1, -1, 0, -2}, 1, 'E');
    //down
    set_instruction({0, 1, -2, 0, 0}, 1, 'E');
    set_instruction({0, -1, -2, 0, 1}, 1, 'E');
    set_instruction({0, 1, -2, 0, -1}, 1, 'E');

    //right with obstacle
    //up
    set_instruction({0, 1, 0, -1, -2}, 1, 'S');
    set_instruction({0, 1, 0, -2, -2}, 1, 'S');
    //down
    set_instruction({0, 1, -2, -1, 0}, 1, 'N');

    //end
    set_instruction({0, 0, -2, -2, 1}, 1, 'T');
    set_instruction({0, 1, -2, -2, 0}, 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...