Submission #293705

# Submission time Handle Problem Language Result Execution time Memory
293705 2020-09-08T10:07:43 Z Autoratch Vision Program (IOI19_vision) C++14
0 / 100
15 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,add_not(ah)});
    int t2 = add_xor({oh,add_not(av)});
    add_or({t1,t2});
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 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 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 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 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 Incorrect 1 ms 256 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 15 ms 1152 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 1 ms 256 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -