제출 #1043943

#제출 시각아이디문제언어결과실행 시간메모리
1043943yanbVision Program (IOI19_vision)C++14
0 / 100
2 ms1496 KiB
#include <bits/stdc++.h> #include "vision.h" using namespace std; void construct_network(int Y, int X, int K) { vector<int> ox(X); for (int i = 0; i < X; i++) { vector<int> Ns(Y); for (int j = 0; j < Y; j++) { Ns[j] = j * X + i; } ox[i] = add_or(Ns); } vector<int> oy(Y); for (int i = 0; i < Y; i++) { vector<int> Ns(X); for (int j = 0; j < X; j++) { Ns[j] = j + i * X; } oy[i] = add_or(Ns); } vector<int> dx(X); for (int d = 0; d < X; d++) { vector<int> Ns; for (int i = 0; i + d < X; i++) { Ns.push_back(add_and({ox[i], ox[i + d]})); } dx[d] = add_or(Ns); } vector<int> dy(Y); for (int d = 0; d < Y; d++) { vector<int> Ns; for (int i = 0; i + d < Y; i++) { Ns.push_back(add_and({oy[i], oy[i + d]})); } dy[d] = add_or(Ns); } vector<int> Ns; for (int x = 0; x < X; x++) { for (int y = 0; y < Y; y++) { if (x + y == K) { Ns.push_back(add_and({dx[x], dy[y]})); } } } add_or(Ns); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...