#include "registers.h"
#define MOVE append_move
#define STORE append_store
#define AND append_and
#define OR append_or
#define XOR append_xor
#define NOT append_not
#define LEFT append_left
#define RIGHT append_right
#define ADD append_add
#define print append_print
void construct_instructions(int s, int n, int k, int q) {
RIGHT(1,0,k);
if(k==1) {
AND(0,1,0);
return;
}
AND(2, 1, 0);
LEFT(3, 0, 1);
LEFT(4, 1, 1);
AND(5, 4, 0);
AND(6, 3, 1);
XOR(7, 6, 5);
NOT(8, 2);
AND(9, 8, 7);
LEFT(10, 9, 1998);
RIGHT(10, 10, 1999);
OR(0, 10, 2);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
260 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
# |
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 |
1 ms |
292 KB |
Incorrect sorting |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
292 KB |
Incorrect sorting |
2 |
Halted |
0 ms |
0 KB |
- |