Why is it wrong?

Правка en2, от orz_m256i, 2022-10-16 14:50:29

1746D — Paths on the Tree

My submission record: https://codeforces.me/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?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский orz_m256i 2022-10-16 14:50:29 6 Tiny change: 'sion/176368620>\n\nPerso' -> 'sion/176362223>\n\nPerso'
en1 Английский orz_m256i 2022-10-16 14:48:53 343 Initial revision (published)