제출 #1195807

#제출 시각아이디문제언어결과실행 시간메모리
1195807Nonoze레지스터 (IOI21_registers)C++20
21 / 100
0 ms328 KiB
#include "registers.h"

void construct_instructions(int s, int n, int k, int q) {
	int b=2000;
	if (k==1) {
		append_right(1, 0, 1);
		append_and(0, 0, 1);
	} else {
		append_right(1, 0, 1);
		append_right(2, 1, 1);
		append_right(3, 2, 1);
		append_and(4, 1, 3);
		append_and(5, 0, 2);
		append_or(6, 4, 5);
		append_not(6, 6);
		append_xor(7, 0, 1);
		append_xor(8, 2, 3);
		append_and(9, 7, 8);
		append_and(10, 6, 9);
		append_or(5, 5, 10);

		append_left(4, 4, 1);
		append_left(5, 5, b-1);
		append_right(5, 5, b-1);
		append_or(0, 4, 5);
	}
}
#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...