| ||||||||||
| 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:我的为什么超时啊!! help!!!!!!!!!!!!!!!!!!!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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator