#include "registers.h"
void construct_instructions(int s, int n, int k, int q) {
append_right(2, 0, k);
append_left(0, 0, 2000 - k);
append_right(0, 0, 2000 - k);
append_not(3, 2);
append_or(4, 0, 3);
append_and(5, 0, 3);
append_right(4, 4, 1);
append_right(9, 5, 1);
append_and(6, 4, 5);
append_or(6, 9, 6);
append_left(7, 6, 1);
append_or(6, 6, 7);
append_and(8, 0, 6);
append_xor(2, 2, 8);
append_and(8, 2, 6);
append_xor(0, 0, 8);
append_and(8, 0, 6);
append_xor(2, 2, 8);
append_left(2, 2, k);
append_or(0, 0, 2);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
204 KB |
Incorrect min value |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
204 KB |
Incorrect min value |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
204 KB |
Incorrect sorting |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
204 KB |
Incorrect sorting |
2 |
Halted |
0 ms |
0 KB |
- |