| ||||||||||
| 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:帮忙看看啊,VC运行成功了,但就是WA啊!In Reply To:Re:帮忙看看啊,VC运行成功了,但就是WA啊! Posted by:zjazczjazc at 2009-07-23 10:26:22 for(j=i+1;j<n;j++)
> {
> if(dna[k][i]>dna[k][j])
> a[k]++;
> }
> }
> }
> for(i=0;i<m-1;i++)
> {
> for(j=i+1;j<m;j++)
> {
> if(a[i]>a[j])
> {
> tem1=a[i];
> a[i]=a[j];
> a[j]=tem1;
> strcpy(tem,dna[i]);
> strcpy(dna[i],dna[j]);
> strcpy(dna[j],tem);
> }
> }
好像题意是已sort-most to sort-least
再看一下
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator