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 chenxuan123456789 at 2012-07-28 16:32:55 on Problem 1183
#include <stdio.h>
int main()
{
	__int64 a,m,n;
	scanf("%I64d",&a);
	for(m=a;m>=1;m--)
		if((a*a+1)%m==0)
			break;
		n=(a*a+1)/m;
		printf("%I64d\n",2*a+m+n);
		return 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