Submission #430057

#TimeUsernameProblemLanguageResultExecution timeMemory
430057MOUF_MAHMALATVision Program (IOI19_vision)C++14
33 / 100
157 ms1096 KiB
#include "vision.h" #include<bits/stdc++.h> using namespace std; typedef int ll; vector<ll>v; ll n,m,gg,x,y; void construct_network(int H, int W, int k) { n=H,m=W,gg=n*m; for(ll i=0; i<n; i++) { for(ll j=0; j<m; j++) { for(ll o=0; o<n; o++) for(ll p=0; p<m; p++) { if(abs(i-o)+abs(j-p)!=k) continue; x=(i*m)+j,y=(o*m)+p; add_and({x,y}); v.push_back(gg++); } } } add_or(v); }
#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...