Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Pearls in the box solution in Speedy category for Pearls in the Box by Rolex
def checkio(marbles, step):
r = len(marbles)
w = marbles.count('w')
return round(1/2 + (1-2/r)**(step-1) * (w/r-1/2), 2)
Dec. 23, 2017