QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#760640 | #9743. 重心树 | ucup-team5918# | WA | 14ms | 11352kb | C++14 | 1.0kb | 2024-11-18 18:07:16 | 2024-11-18 18:07:17 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 2ms
memory: 11352kb
input:
2 4 2 3 4 1 3 0 0 3 1 3 1 3 0
output:
2 3 1 2 1 4 2 3 1 2
result:
ok Accepted (2 test cases)
Test #2:
score: 0
Accepted
time: 14ms
memory: 10676kb
input:
40000 3 2 2 3 0 0 2 1 2 0 4 2 4 3 1 4 0 0 5 1 3 2 5 4 1 5 0 0 4 3 2 3 4 0 0 0 2 1 2 0 2 1 2 0 5 1 2 3 3 4 5 0 0 0 2 1 2 0 2 1 2 0 5 4 2 3 4 5 0 0 0 0 4 1 2 2 3 4 0 0 5 2 5 4 1 5 1 4 0 0 2 1 2 0 5 1 2 3 3 4 5 0 0 0 5 2 2 3 0 2 4 5 0 0 5 2 5 4 1 5 1 4 0 0 5 2 2 4 2 3 5 0 0 0 4 1 3 1 4 1 4 0 4 2 4 3 1 ...
output:
1 2 1 3 1 2 2 4 1 2 1 3 3 5 2 3 2 4 1 2 1 2 1 3 1 4 1 2 1 2 2 3 2 4 2 5 1 2 1 2 1 2 1 2 1 3 1 4 1 5 2 3 2 4 1 2 3 4 2 5 1 2 1 3 1 2 2 3 2 4 2 5 1 2 3 4 3 5 1 2 1 3 3 4 2 5 1 2 1 3 2 3 2 5 1 2 1 4 3 4 2 3 1 2 2 4 1 2 1 3 2 3 1 2 3 5 2 4 1 2 1 3 1 2 2 3 1 2 3 4 3 5 2 3 1 2 1 2 3 4 2 3 1 2 4 5 2 4 1 2 ...
result:
ok Accepted (40000 test cases)
Test #3:
score: -100
Wrong Answer
time: 4ms
memory: 9492kb
input:
10000 5 2 3 4 1 5 1 5 0 0 4 2 3 4 1 3 0 0 7 1 2 3 4 7 6 1 4 0 1 7 0 0 2 1 2 0 2 1 2 0 8 1 3 1 4 3 4 5 6 2 7 8 0 0 0 0 4 2 2 4 0 1 4 0 4 1 2 2 3 4 0 0 4 1 2 2 3 4 0 0 2 1 2 0 7 3 3 4 6 1 7 1 7 0 1 6 0 0 4 2 4 3 1 4 0 0 3 2 2 3 0 0 6 2 5 4 1 6 1 4 0 1 6 0 3 2 2 3 0 0 5 3 2 5 4 0 1 5 0 0 7 2 4 6 1 5 1 ...
output:
3 5 2 3 1 2 1 4 2 3 1 2 1 4 5 7 3 4 2 3 2 5 2 6 1 2 1 2 1 2 4 7 4 8 3 4 3 5 3 6 2 3 1 2 3 4 1 2 1 3 2 3 2 4 1 2 2 3 2 4 1 2 1 2 5 6 3 7 2 3 1 2 1 4 1 5 2 4 1 2 1 3 1 2 1 3 5 6 3 4 2 5 1 2 1 3 1 2 1 3 3 5 1 2 1 3 1 4 5 7 4 5 3 4 2 3 1 2 1 6 1 2 5 6 5 8 3 7 2 3 2 5 1 2 1 4 5 6 4 5 2 4 2 7 1 2 1 3 5 7 ...
result:
wrong answer The index of the node i's father should less than i (test case 636)