제출 #443460

#제출 시각아이디문제언어결과실행 시간메모리
443460azberjibiou레지스터 (IOI21_registers)C++17
22 / 100
1 ms460 KiB
#include "registers.h"
#include <bits/stdc++.h>
using namespace std;
vector <bool> v;
void construct_instructions(int s, int n, int k, int q) {
    v.resize(2000);
    append_store(30, v);
    v[0]=1;
    append_store(21, v);
    for(int i=0;i<k;i++)    v[i]=1;
    append_store(20, v);
    for(int i=1;i<n;i++)
    {
        append_move(1, 0);
        append_and(1, 1, 20);
        append_right(0, 0, k);
        append_not(2, 0);
        append_and(2, 2, 20);
        append_add(3, 2, 1);
        append_right(4, 3, k);
        append_xor(5, 4, 21);
        append_add(6, 20, 4);
        append_add(7, 20, 5);
        append_and(6, 20, 6);
        append_and(7, 20, 7);
        append_and(8, 0, 7);
        append_and(9, 1, 6);
        append_add(10, 8, 9);
        append_right(0, 0, k);
        append_left(0, 0, k);
        append_add(0, 10, 0);
        append_print(0);
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...