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;
vector <bool> v;
void construct_instructions(int s, int n, int k, int q) {
if(k==1)
{
append_move(1,0);
append_right(1,1,1);
append_and(2,0,1);
append_or(3,0,1);
append_left(3,3,1);
append_or(0,2,3);
return;
}
v.resize(2000);
v[0]=1;
append_store(21, v);
v[0]=1, v[1]=1;
append_store(23, v);
append_move(1, 0);
append_right(1, 1, 2);
append_print(0);
append_print(1);
append_not(2, 0);
append_and(2, 23, 2);
append_print(2);
append_add(4, 2, 1);
append_print(4);
append_right(4, 4, 2);
append_xor(5, 4, 21);
append_print(4);
append_print(5);
append_move(34, 4);
append_left(34, 34, 1);
append_add(34, 34, 4);
append_move(35, 5);
append_left(35, 35, 1);
append_add(35, 35, 5);
append_print(34);
append_print(35);
append_print(0);
append_print(1);
append_and(36, 1, 35);
append_and(37, 0, 34);
append_add(0, 36, 37);
}
# | 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... |