Submission #579233

#TimeUsernameProblemLanguageResultExecution timeMemory
579233VanillaVision Program (IOI19_vision)C++17
100 / 100
15 ms1712 KiB
#include "vector" #include "vision.h" #define P push_back #define F(a,b) for(a=0;a<b;a++) void construct_network(int H,int W,int K){int i,j,N;std::vector<int>b,v,h,r;F(i,H){F(j,W)v.P(i*W+j);b.P(add_xor(v));v={b.back()};}F(j,W){F(i,H)v.P(i*W+j);b.P(add_xor(v));v={b.back()};}F(i,9){r.P(add_xor(b));if(K>>i&1)r[i]=add_not(r[i]);N=v[0],h.clear();for(int i:b)h.P(add_and({N,i})),N=add_xor({N,i});b=h;}add_not(add_or(r));}
#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...