Submission #456101

# Submission time Handle Problem Language Result Execution time Memory
456101 2021-08-06T06:19:33 Z fuad27 Connecting Supertrees (IOI20_supertrees) C++14
0 / 100
0 ms 204 KB
#include "supertrees.h"
#include <vector>
#include<bits/stdc++.h>
using namespace std;

int construct(std::vector<std::vector<int>> p) {
	int n = p.size();
	if(n == 1) {
		build({{1}});
		return 1;
	}
	if(n == 2) {
		build({{0,1},{1, 0}});
		return 1;
	}
	return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB b[0][0] is not 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB b[0][0] is not 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 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 204 KB Answer gives possible 0 while actual possible 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB b[0][0] is not 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB b[0][0] is not 0
2 Halted 0 ms 0 KB -