이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "registers.h"
using namespace std;
using lint = long long;
using pi = pair<int, int>;
#define sz(v) ((int)(v).size())
#define all(v) (v).begin(), (v).end()
void construct_instructions(int s, int n, int k, int q) {
{
vector<bool> vect(2000);
fill(vect.begin(), vect.begin() + k, 1);
append_store(99, vect);
append_store(98, vect);
fill(all(vect), 0);
vect[0] = 1;
append_store(97, vect);
}
for(int i = 0; i < n; i++){
// 1 vs 99
append_right(1, 0, i * k);
append_and(1, 1, 98);
append_xor(2, 1, 99);
append_not(3, 99);
append_add(3, 3, 97);
append_add(3, 3, 1);
append_right(3, 3, 1000);
append_and(2, 2, 3);
append_xor(99, 99, 2);
}
append_right(0, 99, 0);
}
# | 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... |