#include "registers.h"
void construct_instructions(int s, int n, int k, int q) {
if(k == 1){
append_print(0);
append_move(1 , 0);
append_right(2 , 0 , 1);
append_print(1);
append_print(2);
append_and(0 , 1 , 2);
append_print(0);
return;
}
append_move(1, 0);
append_right(2, 0 , 2);
append_and(0 , 1, 2) ;
append_xor(3 , 1 , 2) ;
append_right(4 , 3 , 1) ;
// 3 , 4
append_and(30 , 3 , 4) ;
append_right(5 , 1, 1) ;
append_xor(31 , 5 , 1);
append_and(32 , 31 , 30) ;
std::vector <bool> vec ;
for(int i= 0 ; i < 2000 ; i++)vec.push_back(0);
vec[0]= 1;
append_store(33 , vec) ;
append_and(35 , 33 , 32);
append_xor(0 , 0 , 35) ;
}
# | 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... |