| ||||||||||
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:ShenNaizhi at 2025-08-03 16:49:46 我看也有直接递推求解通过的,不过取决于递推方法(顺序),可能溢出(可能约分 gcd 会好点)。也有直接暴力把组合数公式的总分式拆成 min(n, m) 个分式相乘的,涉及 double 的精度问题,感觉比较毒瘤,我个人不是很喜欢那种解法。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator