Hi,
Background: I am good at Maths but I am weak at Combinatorics, Probability.
Problem: C of Educational Codeforces Round 50
I am unable to understand the combinatorics solution of Editorial. Can somebody help me to understand the solution given in the editorial.