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 bluetiger at 2006-01-04 10:15:18 on Problem 2726
In Reply To:Re:WA*5~~~请教大牛,哪里出错了?谢谢 Posted by:wrong123 at 2006-01-01 19:32:52
> 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];
> }
呵呵,我菜啊,这样都写错了
AC~~
谢谢!

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