Submission #644939

# Submission time Handle Problem Language Result Execution time Memory
644939 2022-09-25T15:48:02 Z a_aguilo Vision Program (IOI19_vision) C++14
0 / 100
2 ms 1104 KB
#include "vision.h"
#include<bits/stdc++.h>

using namespace std;

void construct_network(int H, int W, int K) {
	vector<int> possibilities;
	for(int i = 0; i < W; ++i){
        for(int j = 0; j < H; ++j){
            int PosAct = i + j*W;
            vector<int> AtDistanceK;
            AtDistanceK.push_back(PosAct);
            for(int w = 0; w <= K; ++w){
                int h = K - w;
                if(i + w < W){
                    if(j + h < H){
                        AtDistanceK.push_back((j+h)*W + i + w);
                    }
                    if(j - h >= 0){
                        AtDistanceK.push_back((j-h)*W + i + w);
                    }
                }
                if(i - w >= 0){
                    if(j + h < H){
                        AtDistanceK.push_back((j+h)*W + i - w);
                    }
                    if(j - h >= 0){
                        AtDistanceK.push_back((j-h)*W + i - w);
                    }
                }
            }
            int hasTwoOnes = add_and({add_or(AtDistanceK), add_not(add_xor(AtDistanceK))});
            possibilities.push_back(hasTwoOnes);
        }
	}
	add_or(possibilities);
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 340 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB on inputs (0, 0), (1, 1), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 1104 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -