Submission #293703

# Submission time Handle Problem Language Result Execution time Memory
293703 2020-09-08T10:06:23 Z Autoratch Vision Program (IOI19_vision) C++14
0 / 100
14 ms 1152 KB
#include "vision.h"
#include <bits/stdc++.h>
using namespace std;

void construct_network(int m, int n, int k) 
{
    vector<int> vx,hx,tmp;
    for(int i = 0;i < m;i++)
    {
        tmp.clear();
        for(int j = 0;j < n;j++) tmp.push_back(i*n+j);
        hx.push_back(add_xor(tmp));
    }
    for(int i = 0;i < n;i++)
    {
        tmp.clear();
        for(int j = 0;j < m;j++) tmp.push_back(j*n+i);
        vx.push_back(add_xor(tmp));
    }
    int ah = add_or(hx),av = add_or(vx);
    vector<int> sv,sh;
    for(int i = 0;i+k < m;i++) sh.push_back(add_and({hx[i],hx[i+k]}));
    for(int i = 0;i+k < n;i++) sv.push_back(add_and({vx[i],vx[i+k]}));
    int ov = add_or(sv),oh = add_or(sh);
    int t1 = add_xor({ov,ah});
    int t2 = add_xor({oh,av});
    add_or({t1,t2});
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 256 KB Output is correct
2 Incorrect 1 ms 256 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 14 ms 1152 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 256 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -