[HackerRank] 10 Days of Statistics Day 4: Binomial Distribution II

 

https://www.hackerrank.com/challenges/s10-binomial-distribution-2/problem

 

 

 

피스톤 제조시 12% 확률로 잘못된 사이즈로 인해 reject 된다고 한다.

이 때, 10개의 피스톤 중

1. 2개 이하로 reject 될 확률

2. 적어도 2개 reject 될 확률

 

 

마찬가지로 pbnom 함수를 사용해서 완료.

 

 

+ Recent posts