Submission #617887

# Submission time Handle Problem Language Result Execution time Memory
617887 2022-08-01T16:23:41 Z Minindu2006 Vision Program (IOI19_vision) C++14
0 / 100
142 ms 1796 KB
#include "vision.h"
#include <bits/stdc++.h>
using namespace std;
void construct_network(int H, int W, int K)
{
	
	vector<int> allops;
	for (int i = 0; i < H; i++)
	{
		for (int j = 0; j < W; j++)
		{
			vector<int> kDis;
			for (int x = 0; x < H; x++)
			{
				for (int y = 0; y < W; y++)
				{
					if (abs(x - i) + abs(y - j) == K)
						kDis.push_back(x * W + y);
				}
			}
			allops.push_back(add_and({i * W + j, add_or(kDis)}));
		}
	}
	add_or(allops);
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 296 KB Output is correct
2 Incorrect 0 ms 212 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 296 KB Output is correct
2 Incorrect 0 ms 212 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 296 KB Output is correct
2 Incorrect 0 ms 212 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 296 KB Output is correct
2 Incorrect 0 ms 212 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 340 KB Output is correct
3 Incorrect 1 ms 212 KB WA in grader: Instruction with no inputs
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 256 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 15 ms 808 KB Output is correct
4 Correct 33 ms 1796 KB Output is correct
5 Correct 21 ms 1356 KB Output is correct
6 Incorrect 3 ms 340 KB WA in grader: Instruction with no inputs
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 142 ms 968 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 296 KB Output is correct
2 Incorrect 0 ms 212 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -