Why is it wrong?

Revision en2, by orz_m256i, 2022-10-16 14:50:29

1746D — Paths on the Tree

My submission record: https://codeforces.net/contest/1746/submission/176362223

Personally, I think the time complexity of this code is enough to pass this question, but I got Time limit exceeded on pretest 4. Where did this code go wrong?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English orz_m256i 2022-10-16 14:50:29 6 Tiny change: 'sion/176368620>\n\nPerso' -> 'sion/176362223>\n\nPerso'
en1 English orz_m256i 2022-10-16 14:48:53 343 Initial revision (published)