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;
#define lli long long int
#define rep(i,a,b) for (int i = (a); i <= (b); i++)
#define repa(i,a,b) for (int i = (a); i >= (b); i--)
void construct_instructions(int s, int n, int k, int q) {
vector<bool> a;
a.resize(2000,0);
a[0] = 1;
append_store(1,a);
append_not(2,0);
if (k == 1) {
append_right(3,2,k);
append_or(20,2,3);
append_not(20,0);
append_and(0,0,1);
return;
}
append_right(4,2,k); //left
append_right(3,2,1); //left
append_right(5,4,1); //left
append_or(0,3,5);
append_left(0,0,1);
append_and(6,2,3);
append_and(7,4,5);
append_or(8,6,7);
append_xor(10,3,5);
append_not(10,10);
append_and(11,10,2);
append_and(12,10,4);
append_or(13,11,12);
append_or(20,8,13);
append_and(20,20,1);
append_or(0,0,20);
append_not(0,0);
}
# | 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... |