답안 #610936

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
610936 2022-07-28T19:14:04 Z Ozy 레지스터 (IOI21_registers) C++17
0 / 100
1 ms 212 KB
#include "registers.h"
#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define rep(i,a,b) for (int i = (a); i <= (b); i++)
#define repa(i,a,b) for (int i = (a); i >= (b); i--)

void construct_instructions(int s, int n, int k, int q) {
    vector<bool> a;
    a.resize(2000,0);
    a[0] = 1;

    append_store(1,a);
    append_not(0,0);
    //pongo los bits
    append_and(2,1,0);
    append_right(0,0,1);
    if (k == 1) append_store(3,a);
    else {
        append_and(3,1,0);
        append_right(0,0,1);
    }
    append_and(4,1,0);
    append_right(0,0,1);
    append_and(5,1,0);
    append_move(0,8);

    append_or(0,3,5);
    append_right(0,0,1);

    append_and(2,2,3);
    append_and(4,4,5);
    append_or(1,2,4);
    append_add(0,0,1);

    append_not(0,0);
    a[1] = 1;
    append_store(1,a);
    append_and(0,0,1);
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB Incorrect min value
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB Incorrect min value
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB Incorrect min value
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB Incorrect min value
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB Incorrect sorting
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB Incorrect sorting
2 Halted 0 ms 0 KB -