#include <bits/stdc++.h>
using namespace std;
#include "registers.h"
#define pb push_back
//append_move
//append_store
//append_and
//append_or
//append_xor
//append_not
//append_left
//append_right
//append_add
void construct_instructions(int s, int n, int k, int q) {
if(k==1){
append_move(1,0);
append_right(1,1,1);
append_and(0,0,1);
return;
}
append_left(1,0,1999);
append_left(2,0,1998);
append_left(3,0,1997);
append_right(1,1,1999);
append_right(2,2,1999);
append_right(3,3,1999);
append_right(4,0,3);
append_xor(5,2,4);
append_and(6,1,3);
append_not(7,5);
append_not(8,2);
append_and(9,8,1);
append_not(10,4);
append_and(11,10,3);
append_or(12,11,9);
append_and(13,12,5);
append_and(14,7,6);
append_or(15,14,13);
append_and(0,2,4);
append_left(0,0,1);
append_add(0,0,15);
//append_print(0);
}
# |
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 |
348 KB |
Wrong answer detected in grader |
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 |
1 ms |
348 KB |
Incorrect min value |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Incorrect sorting |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Incorrect sorting |
2 |
Halted |
0 ms |
0 KB |
- |