Submission #1238771

#TimeUsernameProblemLanguageResultExecution timeMemory
1238771nikulidRobot Contest (IOI23_robot)C++20
0 / 100
65 ms5592 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
	
	// (we can go back up)
	set_instruction({0,  1, -2, 0, 0}, 1, 'N'); 	// we came from the west
	set_instruction({0,  1, -2, -1, 0}, 1, 'N');	// not like we can even go east anymore


	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...