Submission #602867

# Submission time Handle Problem Language Result Execution time Memory
602867 2022-07-23T12:01:14 Z Sergio_2357 Vision Program (IOI19_vision) C++17
0 / 100
2 ms 2248 KB
#include "vision.h"
#include <bits/stdc++.h>
using namespace std;

typedef vector<int> vi;

int h, w, k;

int pnt(int x, int y)
{
    return x + (y * w);
}

void construct_network(int H, int W, int K)
{
    h = H;
    w = W;
    k = K;
    vi res;
    for (int i = 0; i < w; i++)
        for (int j = 0; j < h; j++) {
            vi v;
            for (int x = i - w; i + x < w; x++)
                for (int y = j - h; j + y < h; y++)
                    v.push_back(pnt(i + x, j + y));
            if (v.size())
                res.push_back(add_and({ pnt(i, j), add_or(v) }));
        }
    if (res.size())
        add_or(res);
    else
        add_xor({ 0, add_or({ 0 }) });
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 2248 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -