This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |