This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "registers.h"
#include <vector>
using namespace std;
void construct_instructions(int s, int n, int k, int q) {
if(k == 2) {
append_right(1, 0, 2);
vector<bool> v(2000, 0);
v[0] = 1;
append_store(10, v);
v[1] = 1;
append_store(3, v);
append_and(0, 0, 3);
// vector<bool> rv(2000, 1);
// for(int i = 0; i < 3; i++) {
{
append_not(2, 0);
append_add(2, 2, 10);
append_add(2, 2, 1);
append_right(2, 2, 2000 - 1);
append_not(2, 2);
append_add(2, 2, 10);
append_and(99, 2, 1);
// append_move(0, 99);
// return;
}
{
append_not(2, 1);
append_add(2, 2, 0);
append_right(2, 2, 2000 - 1);
append_not(2, 2);
append_add(2, 2, 10);
append_and(89, 2, 0);
}
append_or(0, 89, 99);
// }
} else {
append_move(1, 0);
append_right(1, 1, 1);
append_and(0, 0, 1);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |