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> #include<math.h> void main () { int i,j,n,m=0; scanf("%d",&n); if(n==1||n==2) {j=1; printf("%d\n",j); goto end;} else for(i=2;i<n;i++) if(!(n%i)&&n%i%2&&n/i/2<i&&i+n/i/2<n) m=m+1; if(n%2) printf("%d\n",m+2); else printf("%d\n",m+1); end:; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator