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 90401306 at 2005-01-06 21:31:05 on Problem 1316
#include<stdio.h>
void main(){
	int i,n,k,m,g,t;
	int a[10001];
	for(i=1;i<=10000;i++){
		m=i/1000;g=(i-1000*m)/100;
		n=(i-1000*m-100*g)/10;
		k=(i-1000*m-100*g-10*n);
		t=i+m+g+n+k;
		if(t<=10000)a[t]=0;
	}
	for(i=1;i<=10000;i++){
		if(a[i]!=0)printf("%d\n",i);
	}
}

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