会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
frente
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
贪心
蓝桥杯 完美的代价(字符串,贪心)
摘要:#include using namespace std; int n,flag=0,cnt=0; string s; int main() { scanf("%d",&n); cin>>s; int last=n-1; for(int i=0;i=i;j--){//从最后一个元素开始找与第i个元素匹配的元素 if(i==j){ ...
阅读全文
posted @
2019-03-21 20:32
frente
阅读(338)
评论(0)
推荐(0)
公告