会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
AlexPanda
博客园
首页
新随笔
联系
订阅
管理
2019年4月18日
Codeforces#552 div2 Shovels Shop
摘要: 题意:从n个物品买k个,此时有m个优惠,对于一个一次性买了x个物品,可以免费这x中最便宜的y个物品。 思路:枚举取每种优惠最低值,dp #include <bits/stdc++.h> using namespace std; #define ll long long #define forn(i,
阅读全文
posted @ 2019-04-18 11:38 AlexPanda
阅读(119)
评论(0)
推荐(0)
编辑
公告