Submission #762438

# Submission time Handle Problem Language Result Execution time Memory
762438 2023-06-21T11:57:46 Z alexander707070 Vision Program (IOI19_vision) C++14
0 / 100
205 ms 1928 KB
#include<bits/stdc++.h>
#include "vision.h"
#define MAXN 207
using namespace std;
 
int n,m,k;
vector<int> v;
int res[MAXN][MAXN];

void construct_network(int H, int W, int K){
    n=H; m=W; k=K;

    for(int i=0;i<n;i++){
        for(int f=0;f<m;f++){
            v.clear();
            for(int p=0;p<n;p++){
                for(int q=0;q<m;q++){
                    if(abs(i-p)+abs(f-q)==k)v.push_back(p*m+q);
                }
            }

            res[i][f]=add_and({add_or(v),i*m+f});
        }
    }

    v.clear();
    for(int i=0;i<n;i++){
        for(int f=0;f<m;f++){
            v.push_back(res[i][f]);
        }
    }
    add_or(v);
}
 
/*
int main(){
 
    cout<<count_rectangles({{4, 8, 7, 5, 6},
{7, 4, 10, 3, 5},
{9, 7, 20, 14, 2},
{9, 14, 7, 3, 6},
{5, 7, 5, 2, 7},
{4, 5, 13, 5, 6}})<<"\n";
 
    return 0;
}
*/
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 1 ms 212 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 1 ms 212 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 1 ms 212 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 1 ms 212 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 1 ms 340 KB Output is correct
3 Incorrect 0 ms 212 KB WA in grader: Instruction with no inputs
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 12 ms 848 KB Output is correct
4 Correct 21 ms 1928 KB Output is correct
5 Correct 17 ms 1476 KB Output is correct
6 Incorrect 3 ms 468 KB WA in grader: Instruction with no inputs
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 205 ms 1068 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 1 ms 212 KB WA in grader: Instruction with no inputs
3 Halted 0 ms 0 KB -