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;
#ifndef EVAL
#include "grader.cpp"
#endif
const int M = 100;
void upd(int i, int j, int p){
append_and(M - 1, i, j);
append_left(M - 1, M - 1, p);
append_move(M - 2, M - 1);
for(int k=0;k<p;k++){
append_right(M - 2, M - 2, 1);
append_or(M - 2, M - 2, M - 1);
}
append_move(M - 1, M - 2);
}
void construct_instructions(int s, int n, int k, int q) {
if(s) assert(false);
append_left(1, 0, k);
for(int i=k-1;~i;i--){
append_xor(2, 0, 1);
append_left(2, 2, i);
append_right(2, 2, i);
append_or(3, 3, 2);
upd(0, 2, i);
upd(1, 2, i);
append_or(0, 0, M - 1);
append_or(1, 1, M - 1);
}
append_or(2, 0, 1);
append_and(3, 3, 2);
append_move(0, 3);
}
# | 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... |