Submission #721216

# Submission time Handle Problem Language Result Execution time Memory
721216 2023-04-10T14:07:05 Z nguyentunglam Vision Program (IOI19_vision) C++17
0 / 100
89 ms 1036 KB
#include "vision.h"
#include<bits/stdc++.h>
using namespace std;

void construct_network(int h, int w, int K) {
    vector<int> lst;
    for(int i = 0; i < h; i++) for(int j = 0; j < w; j++) {
        for(int k = 0; k < h; k++) for(int l = 0; l < w; l++) {
            if (abs(i - j) + abs(k - l) == K) {
//                cout << i << " " << j << " " << k << " " << l << endl;
                lst.push_back(add_and({i * w + j, k * w + l}));
            }
        }
    }
    if (lst.empty()) return;
    add_or(lst);
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 308 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 300 KB Output is correct
2 Incorrect 1 ms 212 KB on inputs (0, 0), (0, 1), expected 0, but computed 1
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 89 ms 1036 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -