Marbles-Competitive programming

Can u please tell me that why am i getting wrong answer here while correct on codechef

Hey the question clearly states that the answer can be greater that 64-bit integer. And you converted you answer to 32-bit integer while printing it.

So what changes i have to do in my solution?

Okay, here’s the code.
We are solving C(n-1,k-1)
Also, the answer overflows long long int as well. So you may not get complete points for this question.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

@Abhishek-Goyal-1142356522603079
Even your code is not working…