Submission #423761

# Submission time Handle Problem Language Result Execution time Memory
423761 2021-06-11T12:24:32 Z aymanrs Vision Program (IOI19_vision) C++14
0 / 100
3 ms 968 KB
#include <bits/stdc++.h> 
#include "vision.h"
using namespace std;
void construct_network(int H, int W, int K){
    vector<int> O;
    for(int i = 0;i < H;i++){
        for(int j = 0;j < W;j++){
            vector<int> o;
            for(int x = -K; x <= K;x++){
                if(j + x < 0 || j + x >= W) continue;
                if(i - K + abs(x) > 0) o.push_back((i - K + abs(x)) * W + j + x);
                if(i + K - abs(x) < H) o.push_back((i + K - abs(x)) * W + j + x);
            }
            O.push_back(add_and({add_or(o), i * W + j}));
        }
    }
    add_or(O);
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 968 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -