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

1183算法请教

Posted by waterine at 2003-07-22 12:23:27 on Problem 1183
我利用a^2 + 1 = (b-a)(c-a)
for(i= int(sqrt(a^2+1); i>0; i--)
如果((a^2+1)%i ==0) b=i +a; c=(a^2+1)/b +a;
但是WA......
哪位高人指点一下

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