Submission #425154

# Submission time Handle Problem Language Result Execution time Memory
425154 2021-06-12T14:03:58 Z schse Vision Program (IOI19_vision) C++17
0 / 100
10 ms 1100 KB
#include "vision.h"
#ifndef EVAL
#include "grader.cpp"
#endif
#include <bits/stdc++.h>
using namespace std;

void construct_network(int H, int W, int K)
{
	assert(H - 1&& W - 1);
	vector<int> xorrows;
	for (int r = 0; r < H; r++)
	{
		vector<int> v(W);
		iota(v.begin(), v.end(), r * W);
		xorrows.push_back(add_xor(v));
	}
	int diffrentcols = add_or(xorrows);
	int iscrows;
	{
		vector<int> c;
		for (int r = 1; r < H; r++)
		{
			c.push_back(add_and({xorrows[r], xorrows[r - 1]}));
		}
		iscrows = add_or(c);
	}

	vector<int> xorcols;
	for (int c = 0; c < W; c++)
	{
		vector<int> v;
		for (int r = 0; r < H; r++)
			v.push_back(c + r * W);
		xorcols.push_back(add_xor(v));
	}

	int diffrentrows = add_or(xorcols);
	int isccols;
	{
		vector<int> c;
		for (int r = 1; r < W; r++)
		{
			c.push_back(add_and({xorcols[r], xorcols[r - 1]}));
		}
		isccols = add_or(c);
	}
	add_and({add_xor({diffrentcols, diffrentrows}), add_xor({isccols, iscrows})});
	return;
}
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 0 ms 204 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 Correct 10 ms 1100 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 332 KB Output is correct
4 Correct 2 ms 332 KB Output is correct
5 Runtime error 1 ms 332 KB Execution killed with signal 6
6 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -