注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
### Problem Statement
You are given a number of people `n` and a number of groups `k`. Your task is to find the distinct options to form `k` contiguous groups out of the `n` people while respecting the following conditions:
1. In each option, the total of group sizes is equal tes the number of groups to form
**Returns:**
- `int`: a long integer that denotes the number of ways that `n` participants can be divided into `k` groups satisfying the conditions mentioned above. |