Probability Density Function

https://www.codechef.com/JUNE18B/problems/BUILDIT

Can anyone tell me the last calculation of the explanation given in the sample case?

What are the factors with which we multiply probability.
@lastchance help
Last edited on
Anyone please help
@lastchance can you help please??
Topic archived. No new replies allowed.