Submission #1072500

# Submission time Handle Problem Language Result Execution time Memory
1072500 2024-08-23T20:35:30 Z Ahmed57 Bit Shift Registers (IOI21_registers) C++17
0 / 100
1 ms 348 KB
#include "registers.h"
#include "bits/stdc++.h"
 
using namespace std;
 
void mi(int a,int b,int k){
	append_print(0);
	append_not(2,b);
	append_add(2,2,20);
	append_add(3,a,2);
	//x-y
	append_move(4,3);
	append_right(4,4,k-1);
	append_and(3,3,4);
	append_add(5,3,b);
	append_add(6,a,b);
	append_not(7,5);
	append_add(7,7,20);
	append_add(7,7,6);
	append_move(8,7);
	append_move(7,5);
}
void construct_instructions(int s, int n, int k, int q){
	vector<bool> v(2000,0);
	for(int i = 0;i<k;i++)v[i] = 1;
	append_store(6,v);
	for(int i = 1;i<k;i++)v[i] = 0;
	append_store(20,v);
	for(int i = 0;i<n;i++){
		append_move(10+i,0);
		append_and(10+i,10+i,6);
		append_right(0,0,k);
	}
	for(int i = 0;i<n;i++){
		append_print(i+10);
	}
	for(int i = 0;i<1;i++){
		for(int j = 0;j<n-1;j++){
			mi(j+10,j+10+1,k);
			append_print(8);
			append_move(j+10,7);
			append_move(j+11,8);
		}
	}
	append_move(0,10);
}
# 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 0 ms 348 KB Wrong answer detected in grader
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 344 KB Wrong answer detected in grader
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 -