Submission #298869

#TimeUsernameProblemLanguageResultExecution timeMemory
298869kevleeVision Program (IOI19_vision)C++17
12 / 100
21 ms2560 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--) vi diag[500], diag2[500]; void construct_network(int h, int w, int k) { FOR(i, 0, h-1) { FOR(j, 0, w-1) { diag[i+j].pb(i*w+j); diag2[i+w-1-j].pb(i*w+j); } } vi final_query; FOR(i, 0, k-1) { for (int j = i; j + k <= h + w - 2; j += k) { final_query.pb(add_and({add_xor(diag[j]), add_xor(diag[j + k])})); final_query.pb(add_and({add_xor(diag2[j]), add_xor(diag2[j + k])})); } } add_or(final_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...