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 uncleD at 2019-09-03 16:00:33 on Problem 3786
思路:
n位数,需要邻乘为k;
那么n位bit 两两分组共n-1组,这n-1组中只要有k组乘积为1既满足。

及在n-1组中取k组

示例1 5 2 为  4组中取2组, 组合数为6.

这里面有重复计数吗?

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