이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "registers.h"
#include <vector>
using namespace std;
typedef vector<bool> vb;
const int N = 128, L = 7, B = 2000;
void construct_instructions(int s, int n, int k, int q) {
if (s == 0) {
vb aa(B);
int h, i, l;
for (i = n; i < N; i++)
aa[i * k + k - 1] = 1;
append_store(1, aa);
for (h = k - 1; h >= 0; h--) {
append_or(2, 0, 1), append_right(3, 2, k), append_and(3, 3, 2);
for (l = 1; l < L; l++)
append_right(4, 3, k << l), append_and(3, 3, 4);
append_or(5, 5, 3);
for (l = 0; l < L; l++)
append_left(4, 3, k << l), append_or(3, 3, 4);
append_not(3, 3), append_and(2, 2, 3), append_or(1, 1, 2);
append_right(1, 1, 1);
}
append_move(0, 5);
} else {
}
}
| # | 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... |