Submission #892808

#TimeUsernameProblemLanguageResultExecution timeMemory
892808Sir_Ahmed_ImranVision Program (IOI19_vision)C++17
0 / 100
1 ms604 KiB
///~~~LOTA~~~/// #include "vision.h" #include <bits/stdc++.h> using namespace std; #define nl '\n' #define ff first #define ss second #define ll long long #define append push_back #define pii pair<int,int> #define all(x) (x).begin(),(x).end() #define N 100001 void construct_network(int n,int m,int k){ int p,q,r,s; r=n*m-1; vector<int> u,v; for(int i=0;i<n;i++){ r++; u.clear(); for(int j=0;j<m;j++) u.append(i*m+j); if(add_or(u)) v.append(i); } p=v[0]; q=v.back(); v.clear(); for(int i=0;i<m-k+q-p;i++){ r++; u={p*m+i,q*m+i+k-q+p}; s=add_and(u); v.append(r); r++; u={p*m+i+k-q+p,q*m+i}; s=add_and(u); v.append(r); } s=add_or(v); }

Compilation message (stderr)

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:14:15: warning: variable 's' set but not used [-Wunused-but-set-variable]
   14 |     int p,q,r,s;
      |               ^
#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...