#include "registers.h"
void construct_instructions(int s, int n, int k, int q) {
append_right(1, 0, 2);
std::vector<bool> v(2000);
v[0] = 1, v[3] = 1;
append_store(3, v);
append_xor(3, 0, 3);
append_move(4, 3);
append_move(5, 3);
// 0, 1이면 a
for(int i=0;i<3;i++)
{
append_right(3, 3, 1);
append_and(4, 3, 4);
append_or(5, 3, 5);
}
v[3] = 0;
append_store(6, v);
append_not(5, 5);
append_print(4);
append_print(5);
append_or(4, 4, 5);
append_and(6, 4, 6);
append_and(0, 0, 1);
append_or(0, 6, 0);
append_print(0);
}
# |
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 |
- |