sir, answer is not showing correct .
my code no is 180071 on coding blocks ide.
please tell.
thanking you
Answer is showing wrong
Can you share your code link with us. Your code is blank in codepair.
Do watch out the code pair link Ive corrected the code . Hope it helps.
from where i can find the code pair link
sorry for the delay sir as i didn’t get the message notification that u have replied. please tell the mistake
You have to take modinverse to calculate nCr . Your current approach is almost correct just add this thing to get your solution accepted.
what is modinverse sir??
Whenever you are asked to calculate a/b it can vary depending upon compiler. So we use modinverse to find (a%m / b%m )%m to get a fixed integer value.
Do have a look at this
Also you will study modinverse in detail later in the course.
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.