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 为什么会错??偶是新手高人们帮偶看看

Posted by guanlianjun at 2007-06-07 00:07:54 on Problem 2388
兄弟你的冒泡排序没有对!
for(i=1;i<n;i++)
  for(j=0;j<n-i;j++)
     if(a[j]>a[j+1]){t=a[j];a[j]=a[j+1];a[j+1]=t;}
你改一下就可以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