Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

第一个用例的结果为什么不是150呢?

Posted by fanhao20072605 at 2009-03-28 17:27:11 on Problem 1784
如果树根为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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator