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

这个程序问题在那呀?wrong answer,大牛们,帮帮忙呀!!!!

Posted by 00430030 at 2004-12-23 13:38:33 on Problem 2140
#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:
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