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 sjdeak at 2015-12-12 10:57:12 on Problem 1328
In Reply To:给大家个数据,希望有用 Posted by:mickeychen at 2010-04-14 19:53:06
qsort的compare参数返回值是int
如果用return (double) - (double),强制转换的时候就会出问题
正确的方法应该是return (double)>(double)?1:-1;

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