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: 结果都对了,但还是错,哪里错了啊???????In Reply To: 结果都对了,但还是错,哪里错了啊??????? Posted by:lawrenceparley at 2008-02-26 22:51:59 > #include<stdio.h> > main() > { > int a[10006],x,j=0; > for(x=1;j<10005;x++) > { > j=x+x/1000+x/100-(x/1000)*10+x/10-(x/1000)*100-(x/100-(x/1000)*10)*10+x-(x/1000)*1000-(x/100-(x/1000)*10)*100-(x/10-(x/1000)*100-(x/100-(x/1000)*10)*10)*10; > a[j]=0; > } > for(x=1;x<=10000;x++) > if(a[x]!=0) > printf("%d\n",x); > } 算法有问题 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator