Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Description: You have n dices each one having s sides numbered from 1 to s. How many outcomes add up to a specified number k?
Description: You have n dices each one having s sides numbered from 1 to s. How many outcomes add up to a specified number k? For example if we roll four normal six-sided dices we have four outcomes that add up to 5. (1, 1, 1, 2) (1, 1, 2, 1) (1, 2, 1, 1) (2, 1, 1, 1) There are 100 random tests with: 0 <= n <= 10 1 <= s <= 20 0 <= k <= n * s Notes: there is always exactly 1 case to reach k = 0 regardless of the number of dice you have without any dice, it's not possible to reach any positive k
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started