Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:我的推导过程In Reply To:我的推导过程 Posted by:stephtan at 2008-09-04 21:39:16 和我的想法基本一样! 我的想法是: 1/a = (1/b + 1/c)/(1-1/b*1/c) ->ab + ac = bc - 1 ->(b-a)(c-a) = a*a + 1 ->b+c最小,则b+c-2a最小 ->for(i=a;i>=1;i--) if((a*a+1)%i==0) break; j=(a*a+1)/i ->b+c = 2a + j + i; Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator