Submission #316425

#TimeUsernameProblemLanguageResultExecution timeMemory
316425juggernautVision Program (IOI19_vision)C++14
0 / 100
1093 ms1520 KiB
#include"vision.h" #include<bits/stdc++.h> #ifdef EVAL #else #include"grader.cpp" #endif using namespace std; pair<int,int>op(pair<int,int>p){ //if(p.first>p.second)swap(p.first,p.second); return p; } 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(op({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_xor(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...