Submission #673117

#TimeUsernameProblemLanguageResultExecution timeMemory
673117tbzardVision Program (IOI19_vision)C++14
33 / 100
89 ms1104 KiB
#include <bits/stdc++.h> using namespace std; int add_not(int n); int add_and(vector<int> ns); int add_or(vector<int> ns); int add_xor(vector<int> ns); void construct_network(int h, int w, int k){ vector<int> ans; for(int i=0;i<h;i++){ for(int j=0;j<w;j++){ for(int a=0;a<h;a++){ for(int b=0;b<w;b++){ if(abs(i-a) + abs(j-b) == k){ int out = add_and(vector<int>{i*w+j, a*w+b}); ans.push_back(h*w+ans.size()); } } } } } add_or(ans); }

Compilation message (stderr)

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:15:29: warning: unused variable 'out' [-Wunused-variable]
   15 |                         int out = add_and(vector<int>{i*w+j, a*w+b});
      |                             ^~~
#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...