Tricky Alchemy

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
Note:In the first sample case, Grisha needs five yellow and four blue crystals to create two yellow balls, one green ball, and one blue ball. To do that, Grisha needs to obtain two additional crystals: one yellow and one blue.
在这里插入图片描述

说明:此题需要将黄蓝晶体分开计算,因为可能黄晶体或蓝晶体足够,不需要再补充,设置为0。

猜你喜欢

转载自blog.csdn.net/weixin_43534549/article/details/86757011