Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:WA*5~~~请教大牛,哪里出错了?谢谢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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator