Submission #1222110

#TimeUsernameProblemLanguageResultExecution timeMemory
1222110thelegendary08Robot Contest (IOI23_robot)C++17
16 / 100
67 ms5508 KiB
#include "robot.h"

void program_pulibot()
{
	for(int i = -2; i<=1; i++){
		for(int j = -2; j<=1; j++){
			for(int k = -2; k<=1; k++){
				for(int l = -2; l <= 1; l++)for(int t = 0; t<=1; t++){
					if(j == -2 && k == -2){
						set_instruction({t, i, j, k, l}, 1, 'T');
					}
					else if(k == 0){
						set_instruction({t, i, j, k, l}, 1, 'E');
					}
					else if(j == 0){
						set_instruction({t, i, j, k, l}, 1, 'S');
					}
					else if(l == 0){
						set_instruction({t, i, j, k, l}, 1, 'N');
					}
					else if(i == 0){
						set_instruction({t, i, j, k, l}, 1, 'W');
					}
					else if(k == 1){
						set_instruction({t, i, j, k, l}, 2, 'E');
					}
					else if(j == 1){
						set_instruction({t, i, j, k, l}, 2, 'S');
					}
					else if(l == 1){
						set_instruction({t, i, j, k, l}, 2, 'N');
					}
					else if(i == 1){
						set_instruction({t, i, j, k, l}, 2, 'W');
					}
				}
				
			}
		}
	}
	/*
    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');
    */
}
#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...