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:分段,再一个一个区间把N对应的数字套住 Posted by:wrong123 at 2005-12-06 19:37:35 越少的代码,,越绝,,实在是看不明白,,, n=n-b[i-1]*(j-1)-i*j*(j-1)/2; k=b[i-1]*j+i*j*(j+1)/2; Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator