https://tlx.toki.id/problems/bnpchs-2023-final/B
This question requires you to calculate the combination of two numbers where one ranges from 1 to 100 and the other from 1 to k.
They have also asked to mod the final answer by 1e9+7. How to write code in cases like these?
here ya go: https://cp-algorithms.com/combinatorics/binomial-coefficients.html
https://github.com/sreedhar3210/CP-snippets/blob/main/Combinatorics%20and%20fast%20power
you can refer this code snippet
File not found. Can u please provide the link again
https://github.com/sreedhar3210/CP-snippets
This is the link to that repository, you can find combinatorics related snippet in factorial_ops.cpp file.
Thanks