How can i find (nCr)Mod P
I want to find nCr Mod p where n,r is big integer <= 10^6 and P is a prime number, how can i do this ?
ICPC NA North Central and South Division