| ||||||||||
| 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 | |||||||||
这个程序问题在那呀?wrong answer,大牛们,帮帮忙呀!!!!#include<stdio.h>
#include<math.h>
void main () {
int i,j=0,n;
scanf("%d",&n);
for(i=2;i<n;i++)
if(!(n%i)&&n%i%2&&n%i/2<i&&i+n%i/2<n)
j=j+1;
if(n%2) printf("%d\n",j+2);
else printf("%d\n",j+1);
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator