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:结果都对,居然会WA,想不明白。。。。In Reply To:结果都对,居然会WA,想不明白。。。。 Posted by:zxzhangxin at 2009-04-09 20:43:26 > #include<stdio.h> > int main() > { > int i,t[10050]; > for(i=1;i<10000;i++) > t[i+i/1000+(i/100)%10+(i/10)%10+i%10] = 0; > for(i=1;i<10000;i++) > if(t[i]!=0) printf("%d\n",i); > return 0; > } 结果对吗? 。。。晕。。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator