I can't find an approach to merge the subtree's optimally. If anyone could solve this problem, could you share your idea on this ?
Thanks in advance :)
the ranklist I have got so far : https://www.codechef.com/public/rankings/ACM17AMR
The contest is still running .. this ranklist doesn't show any time , submission time , elapsed time etc and who is submitting what . Is there anyone who can provide a live ranklist of the contest ?
Thanks in advance .
problem link : http://codeforces.com/gym/101341/problem/K
My solution : http://paste.ubuntu.com/25525923/
I've used recursive interval DP technique . But don't know why my solution is not working .
Thanks in advance :)
Edit : My bad .. Found the mistake . Never mind. :)