Expected Payoff of Three Dice

Expected Payoff of Three N-Sided Dice

Roll three independent fair N-sided dice, with faces numbered from 1 to N.

  • If all three values are equal, the payoff is A.
  • If exactly two values ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: