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) {
v.resize(2000);
append_store(30, v);
v[0]=1;
append_store(21, v);
for(int i=0;i<k;i++) v[i]=1;
append_store(20, v);
for(int i=1;i<n;i++)
{
append_move(1, 0);
append_and(1, 1, 20);
append_right(0, 0, k);
append_not(2, 0);
append_and(2, 2, 20);
append_add(3, 2, 1);
append_right(4, 3, k);
append_xor(5, 4, 21);
append_add(6, 20, 4);
append_add(7, 20, 5);
append_and(6, 20, 6);
append_and(7, 20, 7);
append_and(8, 0, 7);
append_and(9, 1, 6);
append_add(10, 8, 9);
append_right(0, 0, k);
append_left(0, 0, k);
append_add(0, 10, 0);
append_print(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... |