Submission #842735

#TimeUsernameProblemLanguageResultExecution timeMemory
842735arbuzickRobot Contest (IOI23_robot)C++17
25 / 100
106 ms5968 KiB
#include "robot.h" void program_pulibot() { for (int l = -2; l <= 2; ++l) { for (int d = -2; d <= 2; ++d) { for (int r = -2; r <= 2; ++r) { for (int u = -2; u <= 2; ++u) { if (d == -2 && r == -2) { set_instruction({0, l, d, r, u}, 1, 'T'); set_instruction({1, l, d, r, u}, 1, 'T'); } else if (r == 0) { set_instruction({0, l, d, r, u}, 1, 'E'); set_instruction({1, l, d, r, u}, 1, 'E'); } else if (d == 0) { set_instruction({0, l, d, r, u}, 1, 'S'); set_instruction({1, l, d, r, u}, 1, 'S'); } else if (u == 0) { set_instruction({0, l, d, r, u}, 1, 'N'); set_instruction({1, l, d, r, u}, 1, 'N'); } else if (l == 0) { set_instruction({0, l, d, r, u}, 1, 'W'); set_instruction({1, l, d, r, u}, 1, 'W'); } else if (u == 1) { set_instruction({0, l, d, r, u}, 2, 'N'); set_instruction({1, l, d, r, u}, 2, 'N'); } else if (l == 1) { set_instruction({0, l, d, r, u}, 2, 'W'); set_instruction({1, l, d, r, u}, 2, 'W'); } else if (d == 1) { set_instruction({0, l, d, r, u}, 2, 'S'); set_instruction({1, l, d, r, u}, 2, 'S'); } else if (r == 1) { set_instruction({0, l, d, r, u}, 2, 'E'); set_instruction({1, l, d, r, u}, 2, 'E'); } } } } } }
#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...