Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Getting weird MLE in test 11.

Revision en1, by Dontony, 2021-03-28 12:13:32

Can anyone expain to me why I am getting Memory Limit Exceeded in this problem:- https://mirror.codeforces.com/contest/29/problem/D. Here is the link to my submission:- https://mirror.codeforces.com/contest/29/submission/111265225.

I just computed the path between each pair of nodes (by inserting 1 at the front and 1 at the back of the leaf list) using lca technique. But getting MLE. Any help? Thanks for devoting your time in reading this.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Dontony 2021-03-28 12:13:32 464 Initial revision (published)