I was not able to solve this problem during contest, but this is my CSEQ code > http://ideone.com/iaqmIp codechef solution link > http://www.codechef.com/viewsolution/6781060 I cant figure out why there is error in program. Can anyone please help me, as, this is not getting accepted now ? Thanks. asked 16 Apr '15, 17:39

you are calculating wrong Combinatorial(n,r) you had to calculate combinatorial( (rl+1),(n+ rl+1))1. answered 16 Apr '15, 19:24
