Submission #576126

# Submission time Handle Problem Language Result Execution time Memory
576126 2022-06-12T11:19:02 Z 2fat2code Connecting Supertrees (IOI20_supertrees) C++17
11 / 100
163 ms 25880 KB
#include <bits/stdc++.h>
#include "supertrees.h"
#define fr first
#define sc second
#define all(s) s.begin(), s.end()

using namespace std;

const int nmax = 1005;

int n, adj[nmax][nmax];
vector<vector<int>>ans;

void lol(){
    for(int i=1;i<=n;i++){
        vector<int>tz;
        for(int j=1;j<=n;j++){
            tz.push_back(adj[i][j]);
        }
        ans.push_back(tz);
        tz.clear();
    }
    build(ans);
}

int construct(vector<vector<int>> p) {
	n = p.size();
	for(int i=1;i<n;i++){
            adj[i][i+1] = adj[i+1][i] = 1;
	}
	lol();
	return 1;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 340 KB Output is correct
6 Correct 7 ms 1876 KB Output is correct
7 Correct 163 ms 25880 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 340 KB Output is correct
6 Correct 7 ms 1876 KB Output is correct
7 Correct 163 ms 25880 KB Output is correct
8 Incorrect 0 ms 212 KB Too many ways to get from 0 to 1, should be 0 found no less than 1
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Too many ways to get from 0 to 1, should be 0 found no less than 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Too many ways to get from 0 to 1, should be 0 found no less than 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 340 KB Output is correct
6 Correct 7 ms 1876 KB Output is correct
7 Correct 163 ms 25880 KB Output is correct
8 Incorrect 0 ms 212 KB Too many ways to get from 0 to 1, should be 0 found no less than 1
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 340 KB Output is correct
6 Correct 7 ms 1876 KB Output is correct
7 Correct 163 ms 25880 KB Output is correct
8 Incorrect 0 ms 212 KB Too many ways to get from 0 to 1, should be 0 found no less than 1
9 Halted 0 ms 0 KB -