Skip to content

Latest commit

 

History

History
 
 

day-4-binomial-distribution-1

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Day 4: Binomial Distribution I

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

Problem

In this challenge, we learn about binomial distributions.

Task

The ratio of boys to girls for babies born in Russia is 1.09:1. If there is 1 child born per birth, what proportion of Russian families with exactly 6 children will have at least 3 boys?

Write a program to compute the answer using the above parameters. Then print your result, rounded to a scale of 3 decimal places (i.e., 1.234 format).

Input Format

A single line containing the following values:

1.09 1

My Solution