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)
{
vector<int> inds;
for (int i = 0; i < h; i++)
{
for (int j = 0; j < w; j++)
{
vector<int> temp;
for (int i1 = 0; i1 < h; i1++)
{
for (int j1 = 0; j1 < w; j1++)
{
if(abs(i - i1) + abs(j - j1) == k)
temp.push_back(i1 * w + j1);
}
}
if(temp.size() != 0)
inds.push_back(add_and({i * w + j, add_or(temp)}));
}
}
add_or(inds);
}
# | 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... |