Please Provide Solution in python within 10 lines of codel Rohit dreams he is in a shop with an infinite amount of marbles. He is allowed to select n marbles. There are marbles of k different colors....


Please Provide Solution in python within 10 lines of codel<br>Rohit dreams he is in a shop with an infinite amount of marbles. He is allowed to select n<br>marbles. There are marbles of k different colors. From each color there are also infinitely<br>many marbles. Rohit wants to have at least one marble of each color, but still there are a lot<br>of possibilities for his selection. In his effort to make a decision he wakes up. Now he asks<br>you how many possibilities for his selection he would have had. Assume that marbles of<br>equal color can't be distinguished, and the order of the marbles is irrelevant.<br>Example<br>Input:<br>2<br>10 10<br>30 7<br>Output:<br>1<br>475020<br>

Extracted text: Please Provide Solution in python within 10 lines of codel Rohit dreams he is in a shop with an infinite amount of marbles. He is allowed to select n marbles. There are marbles of k different colors. From each color there are also infinitely many marbles. Rohit wants to have at least one marble of each color, but still there are a lot of possibilities for his selection. In his effort to make a decision he wakes up. Now he asks you how many possibilities for his selection he would have had. Assume that marbles of equal color can't be distinguished, and the order of the marbles is irrelevant. Example Input: 2 10 10 30 7 Output: 1 475020

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here