ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1471. Distance in the Tree

WA13: Hint
Posted by KostyaRychkov 16 Aug 2020 20:33
Max distance may be equal 5e4 * 1e3 = 5e7.
I use INF = 1e6 and spent all day to find this bug.