Submission #429303

#TimeUsernameProblemLanguageResultExecution timeMemory
429303PbezzVision Program (IOI19_vision)C++14
0 / 100
10 ms1100 KiB
#include "vision.h" #include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back typedef pair<ll,ll>pii; const ll MAXN = 9500; const ll INF = 1e9+7; void construct_network(int H, int W, int K){ vector<int>Ns,fina; int d,a,i,j,f1,f2; int linha[H],coluna[W]; for(i=0;i<H;i++){ vector<int>bruh; for(j=0;j<W;j++){ bruh.pb(W*i+j); } linha[i] = add_or(bruh); } for(j=0;j<W;j++){ vector<int>bruh; for(i=0;i<H;i++){ bruh.pb(W*i+j); } coluna[j] = add_or(bruh); } //linha[0] e o index da memoria na qual esta o resultado vector<int>bruh; for(j=0;j<W-1;j++){ bruh.pb(add_and({coluna[j],coluna[j+1]})); } d = add_or(bruh);//tem de haver algumas duas colunas bruh.clear(); for(i=0;i<H;i++){ bruh.pb(linha[i]); } a = add_xor(bruh);//#linhas com algo tem de ser impar f1=add_and({d,a}); bruh.clear(); for(i=0;i<H-1;i++){ bruh.pb(add_and({linha[i],linha[i+1]})); } d = add_or(bruh);//tem de haver algumas duas linhas bruh.clear(); for(j=0;j<W;j++){ bruh.pb(coluna[j]); } a = add_xor(bruh);//#colunas com algo tem de ser impar f2=add_and({d,a}); add_or({f1,f2}); }
#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...