会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Loading
dyhaohaoxuexi
I love you three thousand
博客园
首页
新随笔
联系
订阅
管理
2020年11月23日
Codeforces Round #684 (Div. 2)
摘要: A. Buy the String 大意: 给定一个01字符串,$c_0$代表购买一个字符0的花费,$c_1$代表购买一个字符1的消费,h代表0和1转换的花费,问购买整个字符串花费最小值 思路: 贪心比较直接购买和转换的价格即可 #include<bits/stdc++.h> using names
阅读全文
posted @ 2020-11-23 15:13 dyhaohaoxuexi
阅读(113)
评论(0)
推荐(0)
编辑
公告