Submission #667862

# Submission time Handle Problem Language Result Execution time Memory
667862 2022-12-02T07:24:56 Z coding_snorlax Vision Program (IOI19_vision) C++14
0 / 100
383 ms 1044 KB
#include<bits/stdc++.h>
#include "vision.h"
using namespace std;int List1[200006]={0};
int row,column;
int num (int i,int j){
    return i*column+j;
}
int dis (int i,int j,int k,int l){
    return abs(i-k)+abs(j-l);
}
void construct_network(int H,int W,int K){
    row=H;
    column=W;
    vector<int> s;
    for(int i=0;i<H;i++){
        for(int j=0;j<W;j++){
            s.clear();
            for(int k=0;k<H;k++){
                for(int l=0;l<W;l++){
                    if(dis(i,j,k,l)==K) s.push_back(num(k,l));
                }
            }
            add_xor(s);
        }
    }
    vector<int> s1={0,H*W};
    for(int i=0;i<H*W;i++){
        add_and(s);
        s[0]++;
        s[1]++;
    }
    vector<int> s2;
    for(int i=0;i<H*W;i++){
        s1.push_back(i+2*H*W);
    }
    add_or(s1);
    return;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 260 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 260 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 260 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 260 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 1 ms 340 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 383 ms 1044 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 260 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -