Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

那位大哥看一下,我晕了,哪里出的问题呀????????

Posted by 90405137 at 2004-12-24 16:45:21 on Problem 2140
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator