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 |
你的排序有问题In Reply To:测试了好久都不能发现错误,提交就wrong answer,谁来救救火呀! Posted by:xm1984 at 2006-10-17 18:37:39 while(pb != NULL) { for(i=0;i<m;i++) if(pb->measure == pa[i])《-----这里 { pb->seat = i; break; } pb = pb->next; } 这种排序会丢失值相同的情况,在不丢失值得情况下要稳定排序 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator