#include "registers.h"
#include <bitset>
#include <cassert>
#include <cstdio>
#include <string>
#include <vector>
using namespace std;
static const int m = 100;
static const int b = 2000;
void construct_instructions(int s,int n,int k,int q){
append_move(1, 0);
append_left(1,1,b-k);
append_right(1,1,b-k);
append_move(2,0);
append_right(2,2,k);
append_and(3,1,2);
vector<bool>sq;
for(int i=0;i<b;i++)
sq.push_back(false);
sq[1]=true;
append_store(4,sq);
sq[0]=true,sq[1]=false;
append_store(5,sq);
append_and(6,1,4);
append_and(7,1,5);
append_and(8,2,4);
append_and(9,2,5);
append_xor(10,6,7);
append_xor(10,8,10);
append_xor(10,9,10);
append_move(11,10);
append_right(11,11,1);
append_and(12,11,10);
append_or(3,3,12);
append_move(0,3);
}
# |
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 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 |
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 |
- |