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