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:我的为什么超时啊!! help!!!!!!!!!!!!!!!!!!!

Posted by wlz at 2008-06-06 12:14:18 on Problem 1674
In Reply To:我的为什么超时啊!! help!!!!!!!!!!!!!!!!!!! Posted by:sun_huangjian at 2007-08-25 11:35:20
> 			for(j=0;j<m;j++)
> 			{
> 				if(a[j]==i)
> 				{
> 					k=a[j];
> 					a[j]=a[i-1];
> 					a[i-1]=k;
> 					t++;
> 				}
> 			}
>这个循环不用从0开始的,从i开始就行了..

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