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 1371. Cargo Agency

Is my idea right?
Posted by Lebedev_Nicolay[Ivanovo SPU] 13 Jan 2009 00:16
I try to solve this problem as "offline LCA problem" with recursive DFS, but I have TLE? Where is mistake?
Re: Is my idea right?
Posted by Міша 7 Sep 2015 22:39
Maybe if you solved LCA problem effective you can get AC, but there is easier way to solve this problem.