# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
761871 | caganyanmaz | Bit Shift Registers (IOI21_registers) | C++17 | 0 ms | 0 KiB |
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 <bits/stdc++.h>
using namespace std;
constexpr static int b = 2000;
void append_move(int t, int y);
void append_store(int t, vector<bool> v);
void append_and(int t, int x, int y);
void append_or(int t, int x, int y);
void append_xor(int t, int x, int y);
void append_not(int t, int x);
void append_left(int t, int x, int p);
void append_right(int t, int x, int p);
void append_add(int t, int x, int y);
void construct_instructions(int s, int n, int k, int q)
{
append_print(0);
append_left(1, 0, 2);
append_print(1);
append_and(2, 0, 1);
append_print(2);
append_left(3, 2, 1);
append_print(3);
append_xor(4, 0, 3);
append_print(4);
append_not(4, 4);
append_print(4);
append_and(0, 0, 4);
append_print(0);
append_xor(5, 1, 3);
append_print(5);
append_not(5, 5);
append_print(5);
append_and(1, 1, 5);
append_print(1);
append_and(0, 1);
append_print(0);
}