This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "robot.h"
void program_pulibot()
{
//subtask 1
// set_instruction({0, -2, 0, 0, -2}, 1, 'E');
// set_instruction({0, 1, 0, 0, -2}, 1, 'E');
// set_instruction({0, 1, 0, -2, -2}, 1, 'S');
// set_instruction({0, 0, 0, -2, 1}, 1, 'S');
// set_instruction({0, 0,-2, -2, 1}, 1, 'T');
//subtask 2
//when to go right
for(int i=-2; i<=1; i++){
for(int j=-1; j<=1; j++){
if(i!=0){
set_instruction({0, i, j, 0, -2}, 1, 'E');
}
}
}
for(int i=-2; i<=1; i++){
for(int j=-1; j<=1; j++){
set_instruction({0, i, -2, 0, j}, 1, 'E');
}
}
//when to go down
for(int i=-2; i<=-1; i++){
for(int j=-2; j<=1; j++){
if(j>=-2){
set_instruction({0, j, 0, i, -2}, 1, 'S');
}
}
}
//when to go up
set_instruction({0, 1, -2, -1, 0}, 1, 'N');
set_instruction({0, 0, -2, -1, 0}, 1, 'N');
//when to terminate
set_instruction({0, -1, -2, -2, 1}, 1, 'T');
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');
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |