# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1072331 | Ahmed57 | 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;
void construct_instructions(int s, int n, int k, int q){
append_not(2,0);
append_add(3,2,1);
append_right(3,3,k);
for(int i = 0;i<k-1;i++){
append_left(4,3,1);
append_or(3,3,4);
}
append_move(5,3);
append_not(5,5);
append_or(3,3,1);
append_or(5,5,0);
append_or(0,3,5);
}