Submission #792863

# Submission time Handle Problem Language Result Execution time Memory
792863 2023-07-25T10:06:36 Z Andrey Vision Program (IOI19_vision) C++14
0 / 100
166 ms 992 KB
#include "vision.h"
#include<bits/stdc++.h>
using namespace std;

void construct_network(int h, int w, int k) {
    int br = 0;
	for(int i = 0; i < h; i++) {
        for(int j = 0; j < w; j++) {
            for(int y = 0; y < h; y++) {
                for(int z = 0; z < w; z++) {
                    if(abs(i-y)+abs(j-z) == k && i*w+j < y*w+z) {
                        add_and({i*w+j,y*w+z});
                        br++;
                    }
                }
            }
        }
	}
	vector<int> wut(0);
	if(br > 1) {
        for(int i = 0; i < br; i++) {
            wut.push_back(h*w+br);
        }
        add_or(wut);
	}
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 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 166 ms 992 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 WA in grader: Invalid index
2 Halted 0 ms 0 KB -