Premium problem51. Odd Product of Dice

Easy Locked

Roll n fair six-sided dice and multiply the results. Return the probability the product is odd.

A product is odd only when every factor is odd, and a single even die makes the whole thing even. Three of the six faces are odd.

Input

1

Output

0.5

Premium problem

This one's part of Premium. Unlock the full Probability track plus every other premium problem on the site.

Implement solve(...)