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 mayp at 2007-03-09 22:19:47 on Problem 2453
In Reply To:Re:你可以想想更好的算法,这样直接++效率太低了,耗了二三百MS...我懒得想了,靠你了... Posted by:mayp at 2007-03-09 22:15:11
从低位开始找到第一个1的位置,然后在其更高位找到第一个0,交换之,即可
若找不到,呵呵...

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