#include "registers.h"
#include <vector>
using namespace std;
void construct_instructions(int s, int n, int k, int q) {
vector<bool> mask(2000, false);
mask[0] = true;
append_print(0);
append_store(99, mask);
append_print(99);
append_right(1, 0, 0);
append_print(1);
append_and(1, 1, 99);
append_print(1);
append_right(2, 0, 1);
append_and(2, 2, 99);
append_print(2);
append_print(0);
append_right(3, 0, 2);
append_and(3, 3, 99);
append_print(3);
append_print(0);
append_right(4, 0, 3);
append_print(4);
append_print(0);
append_and(0, 2, 4);
append_left(0, 0, 1);
append_or(5, 1, 3);
append_xor(6, 1, 3);
append_xor(7, 2, 4);
append_xor(8, 1, 2);
append_and(8, 6, 8);
append_and(8, 7, 8);
append_not(6, 6);
append_and(9, 5, 6);
append_or(9, 9, 8);
append_add(0, 0, 9);
}
# | 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... |