Problems Description
<p><span style="font-size: large;"><span style="font-family: Arial;"> June is the month for leaving. Many graduates have to leave colleage and they need to pick up their own things. TT is one of the graduates. He has M same books and N same boxes. He needs to divide these books into K(0<K<=N) groups and put them into the boxes. What's more, the boxes are allowed to be empty and are able to set as many books as he wants. <br /> For example, now TT has 5 books and 3 boxes. (1,3,1),(1,1,3) and (3,1,1) are considered as the same division. <br /> Can you calculate how many divisions TT has.<br /> </span></span></p>
Input格式
<p><span style="font-size: large;"><span style="font-family: Arial;"> The input files consists of several test cases. Each test case has two integers M and N.(0<M<=300, 0<N<=300)<br /> </span></span></p>
Output格式
<p><span style="font-size: large;"><span style="font-family: Arial;"> Output the answer for each test case in a single line.</span></span></p>
Sample
Sample Input 1
5 3
3 2
Sample Output 1
5
2
Submit Code
请先Login后Submit
🤖 AI 解题助手
OpenRouter
就绪