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 1018. Binary Apple Tree

WA#6
Posted by bond 27 Jul 2007 20:14
My program passed the tests I could find but got WA#6.
Please, give me a hint what the test #6 is!!
Re: WA#6
Posted by barty 26 Sep 2007 14:18
My #6 was TLE.I don't know the reason too.
Re: WA#6
Posted by HonoraryCoder 18 Apr 2008 21:36
I also had WA#6, but i understood problem very fast. If you use DP, you should save results for every vertex in the array, and return this value if there is the same query in the future. This is full DP and it works fast.
Re: WA#6
Posted by Wang Xiang 28 May 2009 14:25
Me too,
i tried many tests but still DON'T KNOW WHY......

Edited by author 28.05.2009 14:26