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:gemenhao at 2006-04-01 19:41:00 > __int64 cnk(__int64 n, __int64 k) > { > return k ? cnk(n-1,k-1)*n/k:1; > } 这样的话,递归栈肯定溢出! 如果不溢出,效率也不会高! Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator