Submission #316432

#TimeUsernameProblemLanguageResultExecution timeMemory
316432juggernautVision Program (IOI19_vision)C++14
0 / 100
13 ms1152 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>cas,row(H),col(W); int xor_row,xor_col; for(int i=0;i<H;i++){ vector<int>v; for(int j=0;j<W;j++)v.push_back(i*W+j); row[i]=add_or(v); } xor_row=add_xor(row); for(int j=0;j<W;j++){ vector<int>v; for(int i=0;i<H;i++)v.push_back(i*W+j); col[j]=add_or(v); } xor_col=add_xor(col); vector<int>v; for(int j=1;j<W;j++) v.push_back(add_and({col[j-1],col[j]})); cas.push_back(add_and({xor_row,add_or(v)})); v.clear(); for(int i=1;i<H;i++) v.push_back(add_and({row[i-1],row[i]})); cas.push_back(add_and({xor_col,add_or(v)})); add_or(cas); }
#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...