Submission #795892

# Submission time Handle Problem Language Result Execution time Memory
795892 2023-07-27T20:36:14 Z APROHACK Vision Program (IOI19_vision) C++17
0 / 100
130 ms 1480 KB
#include "vision.h"
#include <bits/stdc++.h>
#define pb push_back
using namespace std;
int h, w, k;
int getPos(int x, int y){
	return x*w + y;
}

void construct_network(int H, int W, int K) {
	h = H;
	w = W;
	k = K;
	vector<int>todos;
	vector<int> N;
	for(int i = 0 ; i < H ; i ++){
		for(int j = 0 ; j < W ; j ++){
			vector<int>cuales;
			for(int xi = 0 ; xi < H ; xi ++){
				for(int xj = 0; xj < W ; xj ++){
					if(xi + xj == k)cuales.pb(getPos(xi, xj));
				}
			}
			todos.pb(add_and({add_or(cuales), getPos(i, j)}));
		}
	}
	add_or(todos);
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 0 ms 212 KB on inputs (0, 1), (0, 2), expected 0, but computed 1
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 0 ms 212 KB on inputs (0, 1), (0, 2), expected 0, but computed 1
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 0 ms 212 KB on inputs (0, 1), (0, 2), expected 0, but computed 1
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 0 ms 212 KB on inputs (0, 1), (0, 2), expected 0, but computed 1
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB on inputs (0, 1), (0, 3), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 8 ms 720 KB Output is correct
4 Correct 13 ms 1360 KB Output is correct
5 Correct 14 ms 1480 KB Output is correct
6 Correct 14 ms 1388 KB Output is correct
7 Correct 7 ms 720 KB Output is correct
8 Incorrect 21 ms 1032 KB WA in grader: Too many instructions
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 130 ms 1044 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 0 ms 212 KB on inputs (0, 1), (0, 2), expected 0, but computed 1
3 Halted 0 ms 0 KB -