#include "registers.h"
void construct_instructions(int s, int n, int k, int q) {
append_right(1, 0, k);
if(k == 1) append_and(0, 0, 1);
else {
append_and(2, 1, 0);
append_left(3, 0, 1);
append_left(4, 1, 1);
append_and(5, 4, 0);
append_and(6, 3, 1);
append_xor(7, 6, 5);
append_not(8, 2);
append_and(9, 8, 7);
append_right(10, 9, 1);
append_or(0, 10, 2);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
Incorrect min value |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Incorrect min value |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
284 KB |
Incorrect min value |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
288 KB |
Incorrect min value |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
292 KB |
Incorrect sorting |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
292 KB |
Incorrect sorting |
2 |
Halted |
0 ms |
0 KB |
- |