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;
void program_pulibot()
{
for(int a = 0 ; a <= 2 ; a++)
for(int b = -2 ; b <= 2 ; b++)
for(int c = -2 ; c <= 2 ; c++)
for(int d = -2 ; d <= 2 ; d++)
for(int e = -2 ; e <= 2 ; e++)
{
vector <int> vec = {a , b , c , d , e};
if(a == 0)
{
//cout << a << " " << b << " " << c << " " << d << " " << e
set_instruction(vec , 1 , 'H');
continue;
}
if(c == -2 && d == -2)
{
set_instruction(vec , 1 , 'T');
continue;
}
if(c != 0 && d != 0)
{
if(b == 1)
set_instruction(vec , 2 , 'W');
else if(e == 1)
set_instruction(vec , 2 , 'N');
continue;
}
if(c == 0)
{
set_instruction(vec , 1 , 'S');
continue;
}
else if(d == 0)
{
set_instruction(vec , 1 , 'E');
}
}
}
# | 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... |