Submission #892842

#TimeUsernameProblemLanguageResultExecution timeMemory
892842Sir_Ahmed_ImranVision Program (IOI19_vision)C++17
52 / 100
9 ms1492 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 o){ int p,q,r; int a[n*m]; int b[n*m]; vector<int> u,v; for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ u={i*m+j}; p=add_or(u); u.clear(); for(int k=0;k<n;k++){ if(abs(i-k)>o || j+o-abs(i-k)>=m) continue; u.append(k*m+j+o-abs(i-k)); } if(u.empty()){ u={i*m+j,i*m+j}; v.append(add_xor(u)); } else{ q=add_or(u); u={p,q}; v.append(add_and(u)); } if(n*m>3500) return; } } r=add_or(v); }

Compilation message (stderr)

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:14:13: warning: variable 'r' set but not used [-Wunused-but-set-variable]
   14 |     int p,q,r;
      |             ^
vision.cpp:15:9: warning: unused variable 'a' [-Wunused-variable]
   15 |     int a[n*m];
      |         ^
vision.cpp:16:9: warning: unused variable 'b' [-Wunused-variable]
   16 |     int b[n*m];
      |         ^
#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...