# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
362464 | 2021-02-03T10:20:29 Z | MoldovanAndrei1 | Vision Program (IOI19_vision) | C++14 | 0 ms | 256 KB |
#include "vision.h" int w1; int OP(int a , int b ) { return (a-1)*w1+b-1; } void construct_network(int H, int W, int K) { std::vector<int> NS; int poz=H*W-1; w1=W; for(int i = 0 ; i <H;i++) { for(int j = 0 ; j < W; j++) { for(int r = 0 ; r <= K ;r++) { if(i + r <H) { if(j+(K-r)<W) { NS={OP(i,j),OP(i+r,j+K-r)}; int a=add_and(NS); poz++; } if(j-(K-r)>=0) { NS={OP(i,j),OP(i+r,j-K+r)}; int a=add_and(NS); poz++; } } if(i-r>=0){ if(j+(K-r)<W) { NS={OP(i,j),OP(i-r,j+K-r)}; int a=add_and(NS);poz++; } if(j-(K-r)>=0) { NS={OP(i,j),OP(i-r,j-K+r)}; int a=add_and(NS); poz++; }} } } } NS.clear(); for(int i=H*W;i<=poz;i++)NS.push_back(i); int b=add_or(NS); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 256 KB | WA in grader: Invalid index |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 256 KB | WA in grader: Invalid index |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 256 KB | WA in grader: Invalid index |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 256 KB | WA in grader: Invalid index |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 256 KB | WA in grader: Invalid index |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 256 KB | WA in grader: Invalid index |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 256 KB | WA in grader: Invalid index |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 256 KB | WA in grader: Invalid index |
2 | Halted | 0 ms | 0 KB | - |