Submission #1021481

# Submission time Handle Problem Language Result Execution time Memory
1021481 2024-07-12T18:45:13 Z vjudge1 Vision Program (IOI19_vision) C++17
0 / 100
1 ms 348 KB
#include "vision.h"
#include<vector>
#include<iostream>
using namespace std;

void construct_network(int H, int W, int K){
    int x,y,p;
    vector<int>r;
    int i=0,j=0;
    //for(int i=0;i<H;i++){
    //    for(int j=0;j<W;j++){
            vector<int>t;
            for(int k=0;k<K;k++){
                x=i+k;
                y=j-K+k;
                if(0<=x&&x<H&&0<=y&&y<W)t.push_back(x*W+y);
                x=i+K-k;
                y=j+k;
                if(0<=x&&x<H&&0<=y&&y<W)t.push_back(x*W+y);
            }
            if(!t.empty()){
                if(t.size()==1)p=t[0];
                else p=add_or(t);
                p=add_and({p,i*W+j});
                r.push_back(p);
            }
    //    }
    //}
    if(r.size()!=1)add_or(r);
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB on inputs (0, 0), (0, 1), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB on inputs (80, 199), (81, 199), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -