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 |
我赞一下你吧。。In Reply To:竟然进第一页了……这辈子值了,附关键优化方法 Posted by:sweetsc at 2009-06-24 22:49:40 > 还是要预处理C(n,k),然后直接输出的…… > 预处理时,C(n,k)和c(n,k+1)有递推关系,C(n,k+1)=C(n,k)/(k+1)*(n-k) > 利用这个就不TLE了…… > 可见数学有用啊…… Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator