Submission #453622

#TimeUsernameProblemLanguageResultExecution timeMemory
453622mjhmjh1104Bit Shift Registers (IOI21_registers)C++17
21 / 100
0 ms204 KiB
#include "registers.h"

void construct_instructions(int s, int n, int k, int q) {
	append_right(2, 0, k);
	append_left(0, 0, 2000 - k);
	append_right(0, 0, 2000 - k);
	append_not(3, 2);
	append_or(4, 0, 3);
	append_and(5, 0, 3);
	append_right(4, 4, 1);
	append_right(9, 5, 1);
	append_and(6, 4, 5);
	append_or(6, 9, 6);
	append_left(7, 6, 1);
	append_or(6, 6, 7);
	append_and(8, 0, 6);
	append_xor(2, 2, 8);
	append_and(8, 2, 6);
	append_xor(0, 0, 8);
	append_and(8, 0, 6);
	append_xor(2, 2, 8);
	append_left(2, 2, k);
	append_or(0, 0, 2);
}
#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...