You are viewing a single comment's thread. Return to all comments →
num,den= map(int, input().split()) k=int(input()) p=num/den geodis=((1-p)**(k-1))*p print(round(geodis,3))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Geometric Distribution I
You are viewing a single comment's thread. Return to all comments →