I am not able to point out my mistake in this code Can someone help me out to debug my code
I tried to solve this problem using centroid decomposition methed explained in this editorail :- editoial
Thanks in advance!.
# | User | Rating |
---|---|---|
1 | tourist | 3947 |
2 | ecnerwala | 3654 |
3 | jiangly | 3627 |
4 | jqdai0815 | 3621 |
5 | orzdevinwang | 3612 |
6 | Benq | 3587 |
7 | Radewoosh | 3582 |
8 | Geothermal | 3569 |
8 | cnnfls_csy | 3569 |
10 | ksun48 | 3474 |
# | User | Contrib. |
---|---|---|
1 | awoo | 162 |
2 | maomao90 | 160 |
3 | adamant | 156 |
4 | maroonrk | 153 |
5 | atcoder_official | 152 |
6 | -is-this-fft- | 148 |
6 | SecondThread | 148 |
8 | Petr | 147 |
9 | nor | 145 |
10 | cry | 144 |
I am not able to point out my mistake in this code Can someone help me out to debug my code
I tried to solve this problem using centroid decomposition methed explained in this editorail :- editoial
Thanks in advance!.
Name |
---|
Thank you guys!
I have finally debugged my code after continuous effort of 4 hours here is the code of Accepted Solution
There was very minor change in my new code
On line no 96 I changed
from print(u) to print(centroid); Once again Thank you all of you!!