Submission #317380

#TimeUsernameProblemLanguageResultExecution timeMemory
317380Jarif_RahmanVision Program (IOI19_vision)C++17
33 / 100
2 ms1148 KiB
#include "vision.h" #include <bits/stdc++.h> #define pb push_back #define f first #define sc second using namespace std; typedef long long int ll; typedef string str; void construct_network(int h, int w, int k){ vector <int> v; for(int i = 0; i < h; i++) for(int j = 0; j < w; j++) for(int a = 0; a <= k; a++){ int x = i+a, y = j+k-a; if(x < h && y < w) v.pb(add_and({i*w+j, x*w+y})); x = i-a, y = j+k-a; if(x >= 0 && y < w) v.pb(add_and({i*w+j, x*w+y})); } add_or(v); }
#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...