n개중에 r개를 고르는 경우의 수  

 

 

C++방식의 nCr 구현 : https://smallpants.tistory.com/174