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:yiyiyi4321 at 2007-02-08 00:32:46 离散课本 第四章函数 f(i,j) = (i+j)*(i+j+1)/2+j; 令u = f(i,j); 令A = [(sqrt(1+8*u)-1)/2](取整数部分) 则j = u-A*(A+1)/2;i = A-j; 证明书上有。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator