Submission #994726

# Submission time Handle Problem Language Result Execution time Memory
994726 2024-06-08T04:32:59 Z 변재우(#10891) Bit Shift Registers (IOI21_registers) C++17
0 / 100
0 ms 348 KB
#include "registers.h"
#include <bits/stdc++.h>
using namespace std;

void construct_instructions(int s, int n, int k, int q) {
	if(k==1) {
		append_move(1, 0);
		append_right(1, 1, 1);
		append_and(0, 0, 1);
		return;
	}
	vector<bool> t(2000, 0);
	t[0]=1;
	append_store(1, t);
	append_and(2, 0, 1);
	append_right(3, 0, 2), append_and(3, 3, 1);
	append_and(4, 2, 3);
	append_xor(2, 2, 4), append_xor(3, 3, 4);
	append_right(5, 0, 1), append_and(5, 5, 1);
	append_right(6, 0, 3), append_and(6, 6, 1);
	append_or(5, 5, 2), append_or(6, 6, 3);
	append_and(7, 5, 6), append_left(7, 7, 1);
	append_move(0, 4), append_or(0, 0, 7);
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Incorrect min value
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Incorrect min value
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Incorrect min value
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Incorrect min value
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Incorrect sorting
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Incorrect sorting
2 Halted 0 ms 0 KB -