답안 #616071

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
616071 2022-07-31T19:52:21 Z Clan328 레지스터 (IOI21_registers) C++17
0 / 100
1 ms 296 KB
#include <bits/stdc++.h>
#include "registers.h"

using namespace std;

// void append_move(int t, int x);
// void append_store(int t, std::vector<bool> v);
// void append_and(int t, int x, int y);
// void append_or(int t, int x, int y);
// void append_xor(int t, int x, int y);
// void append_not(int t, int x);
// void append_left(int t, int x, int s);
// void append_right(int t, int x, int s);
// void append_add(int t, int x, int y);
// void append_print(int t);

void construct_instructions(int s, int n, int k, int q) {
	append_move(1, 0);
	append_move(2, 0);
	append_right(2, 2, k);
	append_and(0, 1, 2);

	if (k > 1) {
		append_xor(3, 1, 2);
		append_right(3, 3, k-1);

		append_or(4, 1, 2);
		append_left(4, 4, 1999);
		append_right(4, 4, 1999);
		
		append_and(5, 3, 4);
		// append_left(5, 5, k-1);

		append_or(0, 5, 0);
	}

	return;
}
# 결과 실행 시간 메모리 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 296 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 1 ms 296 KB Incorrect sorting
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 296 KB Incorrect sorting
2 Halted 0 ms 0 KB -