제출 #226410

#제출 시각아이디문제언어결과실행 시간메모리
226410AaronNaiduVision Program (IOI19_vision)C++14
44 / 100
159 ms2416 KiB
#include <bits/stdc++.h> #include "vision.h" using namespace std; int globCount; void construct_network(int h, int w, int k) { int totSum = 0; globCount = h * w - 1; vector<int> last; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { vector<int> ors; for (int x = i; x < h; x++) { for (int y = 0; y < w; y++) { if (abs(i-x) + abs(j-y) == k) { ors.push_back(x * w + y); //add_and({i*w + j, x*w + y}); } } } if (ors.size()) { int pos = add_or(ors); totSum++; last.push_back(add_and({pos, i * w + j})); } } } add_or(last); }
#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...