You tries to compute n(n-1)...(n-m+1). That's too much for long long. Try input:bgcsaif wrote:Getting WA! Tried some inputs.... It works fine....
100 10
100 15
0 0
You tries to compute n(n-1)...(n-m+1). That's too much for long long. Try input:bgcsaif wrote:Getting WA! Tried some inputs.... It works fine....
100 10
100 15
0 0