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:这题二分需要注意什么啊?

Posted by wrong123 at 2006-01-02 16:44:28 on Problem 1064
In Reply To:这题二分需要注意什么啊? Posted by:wrong123 at 2006-01-01 18:23:53
看了别人的代码,说说这题要注意什么:

这个题由于必须每次都要向下取,所以最好使用整数来做,这样就可以
每次做除法可以舍掉了。 所以读入的时候:100*a+b 赋值给整型数组。
最好排序,再进行二分查找,直到找到一个满足条件的最大长度

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