You are viewing a single comment's thread. Return to all comments →
n,d = map(float,input().split());k = int(input());p = n/d print(round(sum((1 - p)**i * p for i in range(k)),3))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Geometric Distribution II
You are viewing a single comment's thread. Return to all comments →