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

能不能用排列组合的方法解?

Posted by cui715715 at 2007-08-23 20:26:48 on Problem 1664
问题1:

这道题能不能用排列组合的方法解??
实质就是把n个苹果分成m份~可以含零的情况~
用a(m+1,n-1)的数学方法解~
然后再除于m(因为每种情况重新算了m次)

就是最终答案~

问题2:

把一个正整数拆分的题,是不是也可以像这样解决~
例如37,看成37个1,然后分成n份~
而且是不是用2进制表示也行??

谢谢大牛们的解答~~(本人菜鸟,刚学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