Submission #145210

# Submission time Handle Problem Language Result Execution time Memory
145210 2019-08-19T09:35:51 Z Bodo171 Vision Program (IOI19_vision) C++14
0 / 100
4 ms 1140 KB
#include "vision.h"
#include <vector>
using namespace std;
int n,m,i,j,k,wh;
vector<int> v,fin;
int enc(int A,int B)
{
    return (m*A+B);
}
void construct_network(int H, int W, int K) {
    n=H,m=W;wh=n*m-1;
    for(i=0;i<H;i++)
        for(j=0;j<W;j++)
    {
        v.clear();
        for(k=0;k<=K;k++)
        {
            if(i+k<H&&j+K-k<W)
            {
                v.push_back(enc(i+k,j+K-k));
            }
        }
        add_or(v);
        wh++;
        v.clear();v.push_back(enc(i,j));v.push_back(wh);
        wh++;
        add_and(v);
        fin.push_back(wh);
    }
    add_or(fin);
}
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 256 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 256 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 256 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 256 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 376 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 256 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 1140 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 256 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -