题目: The only difference between easy and hard versions is constraints.
Ivan plays a computer game that contains some microtransactions to make characters look cooler. Since Ivan wants his character to be really cool, he wants to use some of these microtransactions — and he won’t start playing until he gets all of them.
Each day (during the morning) Ivan earns exactly one burle.
There are nn types of microtransactions in the game. Each microtransaction costs 22 burles usually and 11 burle if it is on sale. Ivan has to order exactly kiki microtransactions of the ii -th type (he orders microtransactions during the evening).
Ivan can order any (possibly zero) number of microtransactions of any types during any day (of course, if he has enough money to do it). If the microtransaction he wants to order is on sale then he can buy it for 11 burle and otherwise he can buy it for 22 burles.
There are also mm special offers in the game shop. The j
Microtransactions (hard version) cf560(div3)F1&&F2二分+贪心
最新推荐文章于 2022-08-18 11:45:50 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)