Cody

Problem 44254. Probability of red tulips (at both ends of a row)

I planted tulip bulbs in a row on my flower bed. I thought that I had planted white tulips all. However, later, it turned out that two RED tulip bulbs had been mixed in the planted bulbs!

Input (x): Number of all bulbs

Output (y): The probability that RED tulips will bloom at BOTH ENDs of the row.

Solution Stats

74.42% Correct | 25.58% Incorrect
Last Solution submitted on Feb 09, 2020