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:谁帮忙一下,老是WAIn Reply To:谁帮忙一下,老是WA Posted by:xinjin99 at 2007-08-21 12:09:14 if(strcmp(out[y],out[y+1])>0){ strcpy(che,out[y]); strcpy(out[y],out[y+1]); strcpy(out[y+1],che); } 注意你的这两行,最后排序的时候 当x=0,y=f1-x=f1时,排序时出现了out[y+1]也就是out[f1]但是实际上你的数组并没有用到那么多,嘿嘿,拿你的程序改了,然后我ac了,偷懒下 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator