// 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 |
- |