Submission #429171

# Submission time Handle Problem Language Result Execution time Memory
429171 2021-06-15T18:09:47 Z Ahmadsm2005 Vision Program (IOI19_vision) C++14
0 / 100
4 ms 968 KB
#include "vision.h"
//#include "grader.cpp"
#include<bits/stdc++.h>
using namespace std;
int h,w;
void HELP(vector<int>&TEMP,int i,int l){
if(i>=0&&i<w&&l>=0&&l<h)
TEMP.push_back(i+l*w);
}
int query(int i,int l){
vector<int>TEMP;
HELP(TEMP,i,l),HELP(TEMP,i+1,l),HELP(TEMP,i+1,l+1),HELP(TEMP,i,l+1);
if(TEMP.size()){
add_or(TEMP);
return 1;
}
return 0;
}
void construct_network(int H,int W,int K){
h=H,w=W;
if(K==1){
vector<int>ADD;
int Z=0;
set<pair<pair<int,int>,pair<int,int>>>lol;
for(int i=0;i<200;i+=2){
for(int l=0;l<200;l+=2){
Z+=query(i,l);
}
}
for(int i=W*H;i<W*H+Z;i++){
ADD.push_back(i);
}
add_xor(ADD);
}
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 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 204 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 204 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 204 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 204 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 204 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 4 ms 968 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -