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:1183算法请教In Reply To:Re:1183算法请教 Posted by:hushuoqiu at 2005-09-19 00:08:17 因为最后算出来b+c=(a^2+1)/i +2*a+i是个关于i的减函数,所以从sqrt(a^2+1)开始枚举约数i,第一个值就是最小值... Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator