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

Re:《挑战程序设计竞赛》这道题例程这个if是想干啥的??

Posted by PureWhiteWing at 2018-12-19 13:43:07 on Problem 3253
In Reply To:Re:《挑战程序设计竞赛》这道题例程这个if是想干啥的?? Posted by:Yi_iY at 2018-02-02 23:55:12
每次合并时N要减一,所以用L[mii1]来保存之前合并后的结果,用L[mii2]来保存去掉的最后一个元素L[N-1],为了防止最短的板正好是最后一个导致N-1后合并的木板就找不到了

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