Submission #298655

#TimeUsernameProblemLanguageResultExecution timeMemory
298655kevleeVision Program (IOI19_vision)C++17
44 / 100
213 ms3056 KiB
#include "vision.h" #include <bits/stdc++.h> using namespace std; #define pb push_back #define inf 1000000000 #define ll long long #define fi first #define se second #define pii pair<int, int> #define pll pair<ll, ll> #define vi vector<int> #define vl vector<ll> #define vp vector<pii> #define SET(a, b) memset(a, b, sizeof(a)) #define all(x) (x).begin(), (x).end() #define FOR(i, a, b) for (int i = (a); i <= (b); i++) #define FORD(i, a, b) for (int i = (a); i >= (b); i--) void construct_network(int h, int w, int k) { vi query; FOR(i, 0, h-1) { FOR(j, 0, w-1) { vi star; FOR(kk, 0, h-1) { FOR(l, 0, w-1) { if (abs(i - kk) + abs(j- l) == k) { star.pb(kk * w + l); } } } if (star.empty()) continue; int tmp = add_or(star); star = {tmp, i * w + j}; query.pb(add_and(star)); } } add_or(query); }
#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...