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 aa2985759 at 2010-11-19 12:12:51 on Problem 2140
#include<iostream>
using namespace std;
int main()
{
	int n,i,sum=1;
	cin>>n;
	n*=2;
	for(i=2;i*i<n;i++)
	{
		if((n-i*i)%i==0&&(n-i*i)/i%2)
			sum++;
	}
	cout<<sum<<endl;
}

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