# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
922431 | 2024-02-05T13:56:42 Z | ttamx | Vision Program (IOI19_vision) | C++14 | 0 ms | 0 KB |
#include "vision.h" #include<bits/stdc++.h> using namespace std; void construct_network(int H, int W, int K) { vector<int> res; for(int xi=0;xi<H;xi++){ for(int yi=0;yi<W;yi++){ for(int xj=0;x<=xi;xj++){ for(int yj=0;yj<=yi;yj++){ if(xi-xj+yi-yj==K){ res.push_back(add_and({xi*W+yi,xj*W+yj}); } } } } } add_or(res); }