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:谁救救我啊~为什么总是WA啊~?谁有测试数据的啊?

Posted by 19881110 at 2010-01-05 17:14:38 on Problem 3253
In Reply To:谁救救我啊~为什么总是WA啊~?谁有测试数据的啊? Posted by:stchou at 2009-12-19 00:33:55
哥们我也在做你这道题目,但是我觉得有这样几个问题,你的数组开小了,至少是20000多吧,还有你的堆排序我怎么没有看明白了,其次吧,你把最小的两个值的和,放在第二或者第三个之中,然后将最后一个元素放到第一个,然后从第一个开始堆排序,你怎么保证第二或者第三个下边的就满足一个极小堆了

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