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

Re:我的c 程序:简单

Posted by caizhicong0503 at 2007-02-11 15:30:54 on Problem 1183
In Reply To:我的c 程序:简单 Posted by:gardner at 2005-10-09 07:44:25
> #include <stdio.h>
> void main()
> {
> 	unsigned long a,i;
> 	scanf("%ld",&a);
> 	for(i=a;;i--)if((a*a+1)%i==0)break;
> 	printf("%ld\n",2*a+(a*a+1)/i+i);
> }

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