Submission #300158

# Submission time Handle Problem Language Result Execution time Memory
300158 2020-09-16T21:59:29 Z model_code Connecting Supertrees (IOI20_supertrees) C++17
0 / 100
0 ms 512 KB
// bad-behavior
#include "supertrees.h"
#include <vector>

int construct(std::vector<std::vector<int>> p) {
	const int n = p.size();
	if (n == 4) {
		return 2;
	}
	if (n == 2 && p[0][1] == 0) {
		return 1;
	}
	if (n == 2 && p[0][1] == 3) {
		build(p);
		return 0;
	}
	if (n == 5) {
		build(p);
		build(p);
		return 0;
	}
	if (n == 10) {
		p.push_back({});
		build(p);
		return 0;
	}
	if (n == 200) {
		p[0].push_back({});
		build(p);
		return 0;
	}
	return -1;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 512 KB WA in grader: Invalid return value of construct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 512 KB WA in grader: Invalid return value of construct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 384 KB WA in grader: construct returned 1 without calling build
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB WA in grader: Invalid return value of construct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 512 KB WA in grader: Invalid return value of construct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 512 KB WA in grader: Invalid return value of construct
2 Halted 0 ms 0 KB -