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 "registers.h"
#include <bits/stdc++.h>
using namespace std;
void construct_instructions(int S, int N, int K, int Q)
{
if (S==0 && N==2 && K==1)
{
append_right(1, 0, 1);
append_and(0, 0, 1);
}
else
{
append_right(1, 0, 1);
append_not(1, 1);
append_right(2, 0, 3);
append_and(3, 1, 2);
append_xor(4, 1, 2);
append_right(5, 0, 0);
append_not(5, 5);
append_right(6, 0, 2);
append_print(1);
append_print(2);
append_print(3);
append_print(4);
append_print(5);
append_print(6);
append_and(7, 4, 5);
append_and(7, 7, 6);
append_or(7, 7, 3);
append_left(7, 7, 1999);
append_right(7, 7, 1999);
append_left(8, 7, 1);
append_print(7);
append_or(7, 7, 8);
append_and(9, 0, 7);
append_not(7, 7);
append_right(0, 0, 2);
append_print(7);
append_and(10, 0, 7);
append_or(0, 9, 10);
}
}
# | 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... |