Submission #294841

# Submission time Handle Problem Language Result Execution time Memory
294841 2020-09-09T09:57:57 Z egekabas Vision Program (IOI19_vision) C++14
0 / 100
224 ms 1908 KB
#include "vision.h"
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef pair<ll, ll> pll;
typedef pair<ull, ull> pull;
typedef pair<int, int> pii;
typedef pair<ld, ld> pld;
void construct_network(int H, int W, int K){
	vector<int> finalcomp;
	for(int i = 0; i < H; ++i)
		for(int j = 0; j < W; ++j){
			vector<int> fr;
			for(int i1 = 0; i1 < H; ++i1)
				for(int j1 = 0; j1 < W; ++j1)
					if(abs(i1-i)+abs(j1-j) == K)
						fr.pb(i1*W+j1);
			finalcomp.pb(add_and({i*W+j, add_or(fr)}));
		}
	add_or(finalcomp);
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 256 KB Output is correct
2 Incorrect 0 ms 256 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 256 KB Output is correct
2 Incorrect 0 ms 256 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 256 KB Output is correct
2 Incorrect 0 ms 256 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 256 KB Output is correct
2 Incorrect 0 ms 256 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 384 KB Output is correct
2 Correct 1 ms 384 KB Output is correct
3 Incorrect 0 ms 256 KB WA in grader: Instruction with no inputs
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 256 KB Output is correct
2 Correct 0 ms 256 KB Output is correct
3 Correct 15 ms 892 KB Output is correct
4 Correct 32 ms 1908 KB Output is correct
5 Correct 24 ms 1404 KB Output is correct
6 Incorrect 3 ms 384 KB WA in grader: Instruction with no inputs
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 224 ms 1140 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 256 KB Output is correct
2 Incorrect 0 ms 256 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -