Given a fixed k (k<=1e6), make an array F of size n (n<=1e6) , with F[i] be the number of ways to pick AT MOST k elements from i elements.
Is there a way to create this array efficiently?
How many ways to pick AT MOST k elements from n elements?
Given a fixed k (k<=1e6), make an array F of size n (n<=1e6) , with F[i] be the number of ways to pick AT MOST k elements from i elements.
Is there a way to create this array efficiently?
| Rev. | Язык | Кто | Когда | Δ | Комментарий | |
|---|---|---|---|---|---|---|
| en1 |
|
tactical-teto | 2024-09-26 06:08:37 | 249 | Initial revision (published) |