# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
954834 | 2024-03-28T16:47:31 Z | Trisanu_Das | Vision Program (IOI19_vision) | C++17 | 0 ms | 0 KB |
#include <bits/stdc++.h> using namespace std; #include "vision.h" void construct_network(int H, int W, int K) { int cnt = H * W; vector<int> s(2); for(int i = 0; i < H * W; i++) for(int j = i + 1; j < H * W; j++){ if(abs(i / W - j / W) + abs(i % W - j % W) == K){ s[0] = i; s[1] = j; add_and(s); cnt++; } } vector<int> v; for(int i = H * W; i < cont; i++)v.push_back(i); add_or(v); }