This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "vision.h"
#include<bits/stdc++.h>
using namespace std;
void construct_network(int H, int W, int K) {
if (H == 1) {
vector<int> cellIndices;
for (int j = 0; j + K < W; j++) {
vector<int> v{j, j + K};
int cellIndex = add_and(v);
cellIndices.push_back(cellIndex);
}
add_or(cellIndices);
} else if (W == 1) {
vector<int> cellIndices;
for (int i = 0; i + K < H; i++) {
vector<int> v{i, i + K};
int cellIndex = add_and(v);
cellIndices.push_back(cellIndex);
}
add_or(cellIndices);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |