Binomial Coefficient
Time limit2sMemory limit512 MB
Given n (up to 10^18) and k, compute the binomial coefficient C(n, k) modulo 2^32.
- Level
Hard8 of 10
- Topics
- Math, Number theory, Bit manipulation
- Solved
- No attempts yet
Problem
Given and , calculate .
Input
Two integers and ().
Output
A single integer, the value.