I wrote 2 for loops. I was getting TLE.
i made up the formula as (a+nc1*b + nc2*c + nc3*d.......+ nc1*m + n)/2^n-1
For n=50000, we have 50000 C 20000 . How are we going to find such a big number.
How do you solve the problem supermean ?
Moderator: Board moderators
Users browsing this forum: No registered users and 0 guests