Submission #316419

#TimeUsernameProblemLanguageResultExecution timeMemory
316419juggernautVision Program (IOI19_vision)C++14
33 / 100
1091 ms1572 KiB
#include"vision.h" #include<bits/stdc++.h> #ifdef EVAL #else #include"grader.cpp" #endif using namespace std; void construct_network(int H,int W,int K){ vector<int>total; vector<pair<int,int>>v; for(int i1=0;i1<H;i1++) for(int i2=0;i2<H;i2++) for(int j1=0;j1<W;j1++) for(int j2=0;j2<W;j2++) if(abs(i1-i2)+abs(j1-j2)==K)v.push_back({i1*W+j1,i2*W+j2}); sort(v.begin(),v.end()); int n=unique(v.begin(),v.end())-v.begin(); for(int i=0;i<n;i++)total.push_back(add_and({v[i].first,v[i].second})); add_or(total); }
#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...