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 Cathy11 at 2008-03-22 10:23:07 on Problem 1316
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:
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