Submission #316680

# Submission time Handle Problem Language Result Execution time Memory
316680 2020-10-27T09:26:38 Z juggernaut Vision Program (IOI19_vision) C++14
0 / 100
33 ms 3320 KB
#include"vision.h"
#include<bits/stdc++.h>
#ifdef EVAL
#else
#include"grader.cpp"
#endif
using namespace std;
vector<int>g1[405],g2[405];
void construct_network(int H,int W,int K){
    for(int i=0;i<H;i++)
    for(int j=0;j<W;j++){
        g1[i+j].push_back(i*W+j);
        g2[i-j+W-1].push_back(i*W+j);
    }
    vector<int>cas,rdiag,ldiag,prefr,prefl;
    for(int i=0;i<=H+W-2;i++){
        rdiag.push_back(add_or(g1[i]));
        ldiag.push_back(add_or(g2[i]));
        prefr.push_back(add_or(rdiag));
        prefl.push_back(add_or(ldiag));
        if(i>=K){
            cas.push_back(add_and({rdiag[i],prefr[i-K]}));
            cas.push_back(add_and({ldiag[i],prefl[i-K]}));
        }
    }
    add_or(cas);
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 384 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 384 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 384 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 384 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 6 ms 768 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 384 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 33 ms 3320 KB on inputs (126, 120), (176, 169), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 384 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -