【经典】有K张折扣券和m元最多能买多少物品(折前价ai,折后价bi
这真是很玄学的一道题,贪心也要贪好几次。。。 题解:http://www.voidcn.com/article/p-eincjhrs-rv.html 题解:http://www.voidcn.com/article/p-yrbutkck-up.html #includebits/stdc++.h#define ll long longusing namespace std;struct node{int a,b;}
这真是很玄学的一道题,贪心也要贪好几次。。。 题解:http://www.voidcn.com/article/p-eincjhrs-rv.html 题解:http://www.voidcn.com/article/p-yrbutkck-up.html #includebits/stdc++.h#define ll long longusing namespace std;struct node{int a,b;}