#include "registers.h"
void construct_instructions(int s, int n, int k, int q)
{
int i,j;
for(i=1;i<=n;i++)
{
append_move(2,0);
append_left(2,2,2000-k);
append_right(2,2,2000-k);
append_right(0,0,k);
if(i==1) append_move(1,2);
else
{
append_xor(3,1,2);
for(j=0;j<k;j++)
{
append_move(6,3);
append_right(6,6,1999);
append_left(6,6,1999);
append_move(11,2);
append_right(2,2,1999);
append_left(2,2,1999);
append_move(10,6);
append_not(8,7);
append_and(6,6,8);
append_or(7,7,6);
append_and(9,6,2);
append_and(10,10,9);
append_right(10,10,j);
append_add(11,11,10);
append_right(3,3,1);
append_right(2,2,1);
}
append_xor(1,2,11);
}
}
append_move(0,1);
append_print(0);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Incorrect min value |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
204 KB |
Wrong answer detected in grader |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Incorrect min value |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Wrong answer detected in grader |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
460 KB |
Incorrect sorting |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
460 KB |
Incorrect sorting |
2 |
Halted |
0 ms |
0 KB |
- |