#include "registers.h"
#include <bits/stdc++.h>
using namespace std;
void construct_instructions(int s, int n, int k, int q) {
if(k>2||s||n>2) return;
if(k==1){
append_move(1,0);
append_right(1,1,1);
append_and(0,0,1);
return;
}
else{
append_move(1,0);
append_right(1,1,2);
vector<bool> v(2000);
v[0] = 1; v[1] = 1;
append_store(10,v);
append_and(0,10,0);
append_not(2,0);
//move5
append_not(3,1);
v[1] = 0;
append_store(10,v);
append_add(2,1,2);
append_add(2,2,10);
append_right(2,2,2);
append_not(2,2);
//to be removed
append_print(2);
//move10
append_add(3,0,3);
append_add(3,3,10);
append_right(3,3,2);
append_not(3,3);
//to be removed
append_print(3);
append_and(0,0,2);
append_and(1,1,3);
//move15
append_or(0,0,1);
return;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Incorrect min value |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Incorrect min value |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Incorrect sorting |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Incorrect sorting |
2 |
Halted |
0 ms |
0 KB |
- |