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

结果都对了,但还是错,哪里错了啊???????

Posted by lawrenceparley at 2008-02-26 22:51:59 on Problem 1316 and last updated at 2008-02-26 22:56:19
#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