#P8400. [CCC 2022 J1] Cupcake Party
[CCC 2022 J1] Cupcake Party
Problem Description
There are children in the kindergarten, so cupcakes are needed.
A large box can hold cupcakes, and a small box can hold cupcakes. Now there are large boxes and small boxes. If each child gets one cupcake, how many cupcakes will be left?
Input Format
One line with two integers , with the meaning given in the problem description.
Output Format
One line containing the number of leftover cupcakes.
2 5
3
2 4
0
Hint
For all testdata: .
Translated by ChatGPT 5