Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
第一个用例的结果为什么不是150呢?如果树根为25,20和25分别为其左右子树,15和15又为20的左右子树, 则cost=25*(1+0)+20*(1+1)+25*1+15*2+15*2=150。为啥不是这个呢? 可能是题意我没有理解透,望各位指点迷津! Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator