Submission #1053383

# Submission time Handle Problem Language Result Execution time Memory
1053383 2024-08-11T11:17:36 Z MarwenElarbi Bit Shift Registers (IOI21_registers) C++17
21 / 100
1 ms 348 KB
#include <bits/stdc++.h>
using namespace std;
#include "registers.h"
#define pb push_back
//append_move
//append_store
//append_and
//append_or
//append_xor
//append_not
//append_left
//append_right
//append_add
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;
	}
	append_left(1,0,1999);
	append_left(2,0,1998);
	append_left(3,0,1997);
	append_right(1,1,1999);
	append_right(2,2,1999);
	append_right(3,3,1999);
	append_right(4,0,3);
	append_xor(5,2,4);
	append_and(6,1,3);
	append_not(7,5);
	append_not(8,2);
	append_and(9,8,1);
	//append_not(10,4);
	append_and(11,2,3);
	append_or(12,11,9);
	append_and(13,12,5);
	append_and(14,7,6);
	append_or(15,14,13);
	append_and(0,2,4);
	append_left(0,0,1);
	append_add(0,0,15);
	//append_print(0);
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
# 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 1 ms 344 KB Incorrect min value
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB Incorrect sorting
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB Incorrect sorting
2 Halted 0 ms 0 KB -