Submission #1048414

# Submission time Handle Problem Language Result Execution time Memory
1048414 2024-08-08T07:27:17 Z TahirAliyev Vision Program (IOI19_vision) C++17
0 / 100
1 ms 980 KB
#include "vision.h"
#include <bits/stdc++.h>
using namespace std;

void construct_network(int H, int W, int K) {
	for(int i = 0; i < H; i++){
		for(int j = 0; j < W; j++){
			if(add_not(i * W + j)) continue;
			vector<int> v;
			for(int k = 0; k < H; k++){
				int x = i + k, y = j + K - k;
				if(x < 0 || x >= H || y < 0 || y >= W) continue;
				v.push_back(x * W + y);
				x = i + k, y = j - (K - k);
				if(x < 0 || x >= H || y < 0 || y >= W) continue;
				v.push_back(x * W + y);
			}
			if(add_or(v)) return;
		}
	}
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB on inputs (0, 0), (0, 1), expected 0, but computed 1
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 980 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -