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: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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator