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 Moon_1st at 2011-05-29 20:19:47 on Problem 2482
In Reply To:哪位牛可以解释一下这个程序为什么是错的,内附说明。 Posted by:Moon_1st at 2011-05-27 21:06:52
发现了,犯了个很二的错误:
  Insert(tmp, l, mid, a, mid, c);
  Insert(tmp+1, mid, r, mid, r, c);
应该为:
  Insert(tmp, l, mid, a, mid, c);
  Insert(tmp+1, mid, r, mid, b, c);

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