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:为什么错呢?In Reply To:Re:为什么错呢? Posted by:38131 at 2004-12-09 19:35:14 > #include<stdio.h> > #include<math.h> > void main() > { > int i,j,n,t,k,o=0,s=0; > scanf("%d\n",&k); > for(i=1;i<=k;i++) > { > scanf("%d\n",&n); > for(j=1;j<=n;j++) > { > o=0; > for(t=1;t<=n;t++) > { > s=0; > if(j%t==0) > s=s+1; > if(s%2==1) > o=o+1; > } > } > printf("%d\n",o); > > } > } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator