Farmer John has received an order for exactly $M$ units of milk ($1 \leq M \leq 200$) that he needs to fill right away. Unfortunately, his fancy milking machine has just become broken, and all he has are two milk pails of integer sizes $X$ and $Y$ ($1 \leq X, Y \leq 100$) with which he can measure milk. Both pails are initially empty. Using these two pails, he can perform up to $K$ of the following types of operations ($1 \leq K \leq 100$):
zych1751 7년 전 1
Farmer John has received an order for exactly $M$ units of milk ($1 \leq M \leq 200$) that he needs to fill right away. Unfortunately, his fancy milking machine has just become broken, and all he has are two milk pails of integer sizes $X$ and $Y$ ($1 \leq X, Y \leq 100$) with which he can measure milk. Both pails are initially empty. Using these two pails, he can perform up to $K$ of the following types of operations ($1 \leq K \leq 100$):
이런식으로 출력됩니다.