Submission #719813

# Submission time Handle Problem Language Result Execution time Memory
719813 2023-04-06T17:42:34 Z mseebacher Vision Program (IOI19_vision) C++17
0 / 100
2 ms 976 KB
#include "vision.h"
#include <bits/stdc++.h> 

using namespace std;

void construct_network(int H, int W, int K) {
	std::vector<int> Ns;
	int x = 0,y = 0;
	for(int i = 0;i<H*W;i++){
		for(int j = i;j<H*W;j++){
			Ns = {i,j};
			if(add_and(Ns)) {
				x = i;
				y = j;
			}
		}
	}
	if(abs((x-y)/W) + abs(x%W-(y%W)) == K){
		add_and({x,y});
	}else{
		add_xor({x,y});
	}
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 300 KB on inputs (0, 0), (0, 1), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 300 KB on inputs (0, 0), (0, 1), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 300 KB on inputs (0, 0), (0, 1), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 300 KB on inputs (0, 0), (0, 1), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 976 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 300 KB on inputs (0, 0), (0, 1), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 976 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 300 KB on inputs (0, 0), (0, 1), expected 1, but computed 0
2 Halted 0 ms 0 KB -