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:请教这题的算法

Posted by zhucheng at 2005-04-09 19:22:09 on Problem 1831
In Reply To:Re:请教这题的算法 Posted by:TN at 2005-04-09 17:23:33
> 
> 先把S比较小的算出来放着
> S比较大的可以由此构造,如下形式:
> P/2+1/2=1;
> P/2+1/3+1/6=1;
不是吧!
s=251*251时有解:251,251,251,.....(251个)
但是按你的方法是不可能构造出来的,
因为解当中没有2,也没有3,6

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