| ||||||||||
| 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 | |||||||||
求救,为什么就是交不上,谢谢!!!!!!!!#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator