Compute the number of ways to choose items from distinct items.
Given two integers and , determine how many different groups of size can be formed from distinct items.
This is the standard combination count, often written as or .
You may assume the inputs are valid and fit in normal integer ranges for the intended solution approach.
Example 1
Input
5 2
Output
10
Explanation
There are ways to choose 2 items from 5 distinct items.
Premium problem context
Premium adds guided hints, editorial links, similar variants, discussion resources, and concept maps so you can understand why a problem matters, not just solve it once.