Submission #617904

#TimeUsernameProblemLanguageResultExecution timeMemory
617904Minindu2006Vision Program (IOI19_vision)C++14
8 / 100
1 ms304 KiB
#include "vision.h" #include <bits/stdc++.h> using namespace std; // int h, w, k; // void solve() // { // vector<int> allops; // for (int i = 0; i < H; i++) // { // for (int j = 0; j < W; j++) // { // vector<int> kDis; // for (int x = 0; x < H; x++) // { // for (int y = 0; y < W; y++) // { // if (abs(x - i) + abs(y - j) == K) // kDis.push_back(x * W + y); // } // } // allops.push_back(add_and({i * W + j, add_or(kDis)})); // } // } // add_or(allops); // } // void solve6() // { // vector<int> kDis; // for (int x = 0; x < h; x++) // { // for (int y = 0; y < w; y++) // { // if (abs(x - 0) + abs(y - 0) == k) // kDis.push_back(x * w + y); // } // }qqq // add_and({0, add_or(kDis)}) // } void construct_network(int H, int W, int K) { vector<int> kDis; for (int x = 0; x < H; x++) { for (int y = 0; y < W; y++) { if (abs(x - 0) + abs(y - 0) == K) kDis.push_back(x * W + y); } } add_and({0, add_or(kDis)}); }
#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...