|  | 
|  | 
| вернуться в форум | Is my idea right? 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? Послано Міша  7 сен 2015 22:39Maybe if you solved LCA problem effective you can get AC, but there is easier way to solve this problem.Re: Is my idea right? Послано Abid29  27 фев 2021 15:17u are latehe got ac in 31 Jan 2009
 | 
 | 
|