Comments

I got a message saying that my solution for problem 1304E coincides with that of some other participants. I used the CP Algorithms implementation for LCA which you can find here: https://cp-algorithms.com/graph/lca.html. This was published before the start of Codeforces Round 620 (Div. 2) and so it does not count as a violation of the rules.

Although I added a few additional methods in my source code, a big chunk of my solution was for the LCA structure. So I guess that could've set off the response. I hope this clears things up.

If you need any more information, please let me know.

+7

Not sure if I should be posting this here, but:

I just got a message saying that my solution for problem E coincides with that of some other participants. This is likely because I used the CP Algorithms implementation for LCA which you can find here: https://cp-algorithms.com/graph/lca.html

Although I added a few additional methods in my source code, a big chunk of my solution was for the LCA structure. So I guess that could've set off the response. I hope this clears things up.

If you need any more information, please let me know. MikeMirzayanov

1
5 2
4 5 1 3 2
1 3

Answer should be 10. Your code outputs 6. Once you take out the 1, you still need to take out the 4 and 5 again before you take out the 3.

I thought the same thing. I should really read questions more carefully next time.