摘要: 题目连接https://www.luogu.com.cn/problem/P1106 问题分析:根据贪心策略,可找到导致字符串不上升的数字往前移一位即可,依次删除 1 #include<bits/stdc++.h> 2 using namespace std; 3 char n[250]; 4 in 阅读全文
posted @ 2020-08-18 18:05 TFLSNOI 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 1 #include<bits/stdc++.h> 2 using namespace std; 3 4 const int maxn=1010; 5 struct node{ //point即指针,data就是需要维护的数据 6 int point,data; 7 }a[maxn]; 8 int 阅读全文
posted @ 2020-08-18 11:07 TFLSNOI 阅读(175) 评论(0) 推荐(0) 编辑