#include "registers.h"
using namespace std;
/*
void append_move(int t, int y)
void append_store(int t, bool[] v)
void append_and(int t, int x, int y)
void append_or(int t, int x, int y)
void append_xor(int t, int x, int y)
void append_not(int t, int x)
void append_left(int t, int x, int p)
void append_right(int t, int x, int p)
void append_add(int t, int x, int y)
*/
void construct_instructions(int s, int n, int k, int q) {
append_left(1, 0, 1999);
append_right(1, 1, 1999);
append_left(2, 0, 1998);
append_right(2, 2, 1999);
append_left(3, 0, 1997);
append_right(3, 3, 1999);
append_left(4, 0, 1996);
append_right(4, 4, 1999);
append_xor(5,2,4);
append_and(6,2,5);
append_and(7,4,5);
append_or(8,2,6);
append_or(9,1,6);
append_or(10,4,7);
append_or(11,3,7);
append_left(8,8,1);
append_left(10,10,1);
append_add(8,8,9);
append_add(10,10,11);
append_and(0,8,10);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 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 |
344 KB |
Incorrect sorting |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Incorrect sorting |
2 |
Halted |
0 ms |
0 KB |
- |