摘要:
首先考虑根据题意模拟 #include<bits/stdc++.h> #define int long long//懒死谁了 using namespace std; typedef long long ll inline void rd(int &x) { x=0; bool w=0; char 阅读全文
摘要:
一道对顶栈 思路和修改过程 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn=1e6+9; int f[maxn],cnt; //最大前缀和 光标左边元素个数 stack<int>a;/ 阅读全文
摘要:
#include<bits/stdc++.h> //AcWing 118 分形 //by Mercury //202209 using namespace std; typedef long long ll; const int maxn=3000; char a[maxn][maxn]; int 阅读全文