#P1655. 小朋友的球
小朋友的球
Description
A kid recently became very fond of balls. One day, he took distinct balls out of his pocket and wants to put them into identical boxes, with at least one ball in each box. He wonders how many ways there are. He tried to write a program, but since he slacks off and only watches swimming coaches on Bilibili, he asks you for help.
Input Format
Multiple test cases. Each line contains two integers .
Output Format
For each test case, output a single line with the number of ways.
4 2
1 1
7
1
Hint
- For of the testdata, .
- For of the testdata, , and there are at most test cases per test file.
Translated by ChatGPT 5
京公网安备 11011102002149号