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

Posted by 346248129 at 2008-06-03 02:36:32 on Problem 1318
In 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:
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