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:不同的归并求逆序,一个超时一个400MS.

Posted by sleepingpig at 2009-08-09 00:25:19 on Problem 2299
In Reply To:Re:不同的归并求逆序,一个超时一个400MS. Posted by:sleepingpig at 2009-08-09 00:23:53
1.   swap_cnt += j - m;  --->  swap_cnt += m-i+1;
2.   while (i >= 0)  ---> while (i >= s)


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