摘要:
题目连接https://www.luogu.com.cn/problem/P1106 问题分析:根据贪心策略,可找到导致字符串不上升的数字往前移一位即可,依次删除 1 #include<bits/stdc++.h> 2 using namespace std; 3 char n[250]; 4 in 阅读全文
摘要:
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 阅读全文