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 <bits/stdc++.h>
#include "robot.h"
using namespace std;
#define pb push_back
#define st first
#define nd second
typedef long long ll;
typedef long double ld;
const ll I = 1000'000'000'000'000'000LL;
const int II = 2'000'000'000;
const ll M = 1000'000'007LL;
const int N = 1000'007;
int tab[N];
void program_pulibot()
{
for(int a = 0; a <= 3; ++a)
for(int i = -2; i <= 3; ++i)
for(int j = -2; j <= 3; ++j)
for(int k = -2; k <= 3; ++k)
for(int l = -2; l <= 3; ++l)
{
if(((j == -2 && k == -2) || (j == 1 || k == 1)) && i == -2 && l == -2)
{
set_instruction({a, i, j, k, l}, 1, 'T');
continue;
}
if(((j == -2 && k == -2) || (j == 1 || k == 1)) && i > 0)
{
set_instruction({a, i, j, k, l}, 1, 'W');
continue;
}
if(((j == -2 && k == -2) || (j == 1 || k == 1)) && l > 0)
{
set_instruction({a, i, j, k, l}, 1, 'N');
continue;
}
if(a == 0 && j == 0)
{
set_instruction({a, i, j, k, l}, 2, 'S');
continue;
}
if(a <= 2 && k == 0)
{
set_instruction({a, i, j, k, l}, 3, 'E');
continue;
}
if(i > 0)
{
set_instruction({a, i, j, k, l}, 0, 'W');
continue;
}
if(l > 0)
{
set_instruction({a, i, j, k, l}, 0, 'N');
continue;
}
}
}
# | 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... |