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*5~~~请教大牛,哪里出错了?谢谢

Posted by wrong123 at 2006-01-01 19:32:52 on Problem 2726
In Reply To:WA*5~~~请教大牛,哪里出错了?谢谢 Posted by:bluetiger at 2006-01-01 11:55:21
qsort写错了,应该是:

int cmp(const void *a,const void *b)
{
    int i=*(int*)a,j=*(int*)b;
    if(d[i]!=d[j])return d[i]-d[j];
    else return c[i]-c[j];
}

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