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>
#define ll int
using namespace std;
vector<bool> v(2000);
void construct_instructions(int s, int n, int k, int q) {
if(n==2){
append_move(1,0);
append_right(1,0,k);
v[0] = 1;
append_store(99,v); /// 1
v[0] = 0;
v[1] = 1;
append_store(98,v); /// 2
v[0] = 1;
append_store(97,v); /// 3
if(k==1){
append_and(0,0,1);
}else{
append_xor(2,0,1);
append_and(3,2,99);
append_xor(4,3,99);
append_add(5,4,99);
append_not(6,5);
append_and(7,6,97);
append_xor(0,7,2);
}
}
}
# | 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... |