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

科大软件学院11级加油做啊~~ 我是你们助教,泪奔~

Posted by 1272406003 at 2011-11-25 20:30:39 on Problem 3714
刚开始就写了个代码,用qsort一直Wrong answer, 把qsort改成sort直接Accept. 泪奔~~
本来就应该过...求解释..?

qsort和sort还是有区别的,sort似乎是按照排序关键字挨个的排,即是第一相同,按照第二个,以此类推,qsort只按照比较函数的关键字排序。可能是数据比较弱的问题,也有可能是qsort函数比较弱的原因。

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