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

这题排序之后就可以确定子树的顺序,即使是1000叉

Posted by magic_pig at 2004-12-28 21:46:54 on Problem 2057
访问每一棵子树失败的代价设为wi,相应子树的叶子数目设为li
对wi/li排序之后的顺序就是子树的访问顺序
当时比赛的时候忘了"工序问题",也没看到8叉,留下了郁闷..

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