Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:直接用组合公式就一步

Posted by softmind at 2006-05-06 15:39:46 on Problem 2249
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator