제출 #1083644

#제출 시각아이디문제언어결과실행 시간메모리
1083644SamueleVid로봇 대회 (IOI23_robot)C++17
16 / 100
144 ms10204 KiB
#include "robot.h"

constexpr int ZMAX = 19;

void program_pulibot() {

    for (int a = 0; a <= ZMAX; a ++) {
        for (int b = 0; b <= ZMAX; b ++) {

            set_instruction({a, -2, -2, b, -1}, 1, 'E'); // 2
            set_instruction({a, -2, -1, b, -2}, 1, 'E'); // 2

            set_instruction({a, -2, b, -2, -2}, 1, 'S'); // 2
            set_instruction({a, -2, b, -1, -2}, 1, 'S'); // 2

            set_instruction({a, -2, -2, -2, b}, 1, 'N'); // 2
            set_instruction({a, -2, -2, -1, b}, 1, 'N'); // 2

            set_instruction({a, b, -2, -2, -1}, 1, 'T'); // 2
            set_instruction({a, -1, -2, -2, b}, 1, 'T'); // 2

            for (int c = 0; c <= ZMAX; c ++) {
                
                set_instruction({a, -2, b, c, -2}, 1, 'E'); // 3
                set_instruction({a, -1, b, c, -2}, 1, 'E'); // 3

                set_instruction({a, -2, -2, b, c}, 1, 'E'); // 3
                set_instruction({a, -2, -1, b, c}, 1, 'E'); // 3  
                set_instruction({a, -1, -1, b, c}, 1, 'E'); // 3  
                set_instruction({a, -1, -2, b, c}, 1, 'E'); // 3  

                set_instruction({a, b, -2, c, -1}, 1, 'E'); // 4
                set_instruction({a, b, -1, c, -2}, 1, 'E'); // 4

                set_instruction({a, b, c, -2, -2}, 1, 'S'); // 3
                set_instruction({a, b, c, -1, -2}, 1, 'S'); // 3
                set_instruction({a, b, c, -2, -1}, 1, 'S'); // 3

                set_instruction({a, b, -2, -2, c}, 1, 'T'); // 3
                set_instruction({a, b, -2, -1, c}, 1, 'N'); // 3

                for (int d = 0; d <= ZMAX; d ++) {
                
                    set_instruction({a, b, -2, c, d}, 1, 'E'); // 4
                    set_instruction({a, b, c, -2, d}, 1, 'S'); // 4 per subtask 1
                    set_instruction({a, b, c, d, -2}, 1, 'E'); // 4

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