Submission #284123

# Submission time Handle Problem Language Result Execution time Memory
284123 2020-08-26T21:50:39 Z Pichon5 Vision Program (IOI19_vision) C++17
0 / 100
122 ms 1076 KB
#include <bits/stdc++.h>
#include "vision.h"

using namespace std;
///H colums
bool dis(int x,int y, int xx, int yy, int K){
    if(abs(x-xx)+abs(y-yy)==K){
        return true;
    }
    return false;
}
void construct_network(int H, int W, int K) {
	vector<int>v;
	for(int i=0;i<H;i++){
        for(int l=0;l<W;l++){
            for(int ii=i;ii<H;ii++){
                for(int ll=l;ll<W;ll++){
                    if(dis(i,l,ii,ll,K)==true){
                        //cout<<i<<","<<l<<"  ^  "<<ii<<","<<ll<<"   "<<i*H+l<<"  "<<ii*H+ll<<endl;
                        if(add_and({i*W+l,ii*W+ll})==1){
                            return ;
                        }
                    }
                }
            }
        }
	}
	//6 6 3
	add_or(v);
	/*add_not(c);
	Ns = {0, 1};
	int a = add_and(Ns);
	Ns = {0, a};
	int b = add_or(Ns);
	Ns = {0, 1, b};
	int c = add_xor(Ns);
	add_not(c);*/
}

# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 122 ms 1076 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -