| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 863073 | faustaadp | Robot Contest (IOI23_robot) | C++17 | 108 ms | 6908 KiB | 
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"
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;
#define pb push_back
#define mp make_pair
#define fi first
#define se second
const ll NN = 2e5 + 5;
void program_pulibot()
{
    for(int now = -2; now <= 8; now++)
        for(int W = -2; W <= 8; W++)
            for(int S = -2; S <= 8; S++)
                for(int E = -2; E <= 8; E++)
                    for(int N = -2; N <= 8; N++)
                    {
                        int war = 2;
                        char arah = 'W';
                        if((S == -2 && E == -2) || N == 1 || W == 1 || E == 1 || S == 1)
                        {
                            war = 1;
                            if(S > 1)arah = 'S';
                            else if(E > 1)arah = 'E';
                            else if(N > 1)arah = 'N';
                            else if(W > 1)arah = 'W';
                            if(N == -2 && W == -2 && now != 0)
                            {
                                arah = 'T';
                                war = 1;
                            }
                        }
                        else
                        if(now == 0)
                        {
                            war = 2;
                            if(E == 0)
                            {
                                arah = 'E';
                                war = 3;
                            }
                            else if(S == 0)
                            {
                                arah = 'S';
                                war = 3;
                            }
                            else if(W == 0)
                            {
                                arah = 'W';
                                war = 4;
                            }
                            else if(N == 0)
                            {
                                arah = 'N';
                                war = 5;
                            }
                            else
                            {
                                war = 0;
                                if(W > 0)arah = 'W';
                                else if(N > 0)arah = 'N';
                                else if(E > 0)arah = 'E';
                                else if(S > 0)arah = 'S';
                            }
                        }
                        else
                        if(war == 2)
                        {
                            war = 3;
                            if(S == 0)
                            {
                                arah = 'S';
                                war = 3;
                            }
                            else if(W == 0)
                            {
                                arah = 'W';
                                war = 4;
                            }
                            else if(N == 0)
                            {
                                arah = 'N';
                                war = 5;
                            }
                            else
                            {
                                war = 0;
                                arah = 'E';
                            }
                        }
                        else
                        if(war == 3)
                        {
                            war = 4;
                            if(W == 0)
                            {
                                arah = 'W';
                                war = 4;
                            }
                            else if(N == 0)
                            {
                                arah = 'N';
                                war = 5;
                            }
                            else
                            {
                                war = 0;
                                arah = 'S';
                            }
                        }
                        else
                        if(war == 4)
                        {
                            war = 5;
                            if(N == 0)
                            {
                                arah = 'N';
                                war = 5;
                            }
                            else
                            {
                                war = 0;
                                arah = 'W';
                            }
                        }
                        else
                        if(war == 5)
                        {
                            war = 0;
                            arah = 'W';
                        }
                        set_instruction({now, W, S, E, N}, war, arah);
                    }
    // set_instruction({0, 1, -1, 0, -2}, 1, 'E');
    // set_instruction({0, 1, 0, -2, -2}, 1, 'S');
    // 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... | ||||
