Submission #567646

# Submission time Handle Problem Language Result Execution time Memory
567646 2022-05-23T23:27:25 Z Gabriel Connecting Supertrees (IOI20_supertrees) C++17
0 / 100
1 ms 468 KB
#include "supertrees.h"
#include "bits/stdc++.h"
using namespace std;
int construct(vector<vector<int> > p){
    int n = p.size();
    vector<vector<int> > answer;
    answer.assign(n, vector<int>(n));
    for(int i = 0; i < n; i++){
        for(int j = 0; i < n; j++){
            if(abs(i-j) == 1){
                answer[i][j] = 1;
            } else {
                answer[i][j] = 0;
            }
        }
    }
    build(answer);
    return 1;
}
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 468 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 468 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 468 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 468 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 468 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 468 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -