제출 #1335374

#제출 시각아이디문제언어결과실행 시간메모리
1335374NValchanovRobot Contest (IOI23_robot)C++20
0 / 100
1 ms344 KiB
#include "robot.h"
#include <vector>

using namespace std;

pair < int, int > get_interval(int x)
{
    if(x == -3)
        return {-2, 1};

    return {x, x};
}

void set_interval(vector < int > st, int col, char dir)
{
    for(int c = get_interval(st[0]).first; c <= get_interval(st[0]).second; c++)
    {
        for(int w = get_interval(st[1]).first; w <= get_interval(st[1]).second; w++)
        {
            for(int s = get_interval(st[2]).first; s <= get_interval(st[2]).second; s++)
            {
                for(int e = get_interval(st[3]).first; e <= get_interval(st[3]).second; e++)
                {
                    for(int n = get_interval(st[4]).first; n <= get_interval(st[4]).second; n++)
                    {
                        set_instruction({c, w, s, e, n}, col, dir);
                    }
                }
            }
        }
    }
}

void program_pulibot()
{
    set_interval({-3, -3, 0, -3}, 1, 'E');
    set_interval({-3, -2, -1, -3}, 1, 'N');
    set_interval({-3, -2, -2, -3}, 1, 'T');
    set_interval({-3, -3, -1, -2}, 1, 'S');
    set_interval({-3, 0, -2, -3}, 1, 'S');
}
#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...