sometimes,something can’t be well
首绿:分组 首蓝:蚯蚓
首紫:压缩 首黑:翻转序列
C++#include<bits/stdc++.h>
using namespace std;
#define forl(i,a,b) for(int i=(a);i<=(b);i++)
#define forr(i,a,b) for(int i=(a);i>=(b);i--)
#define pel printf("\n")
#define pc putchar
const int N=2e5+1000,INF=2008052607;
inline void read(){}template<class T1,class ...T2>
inline void read(T1 &x,T2&...rest){x=0;int f=1;char ch=getchar();
while(ch<'0'||ch>'9'){if (ch=='-') f=-1;ch=getchar();}
while(ch>='0'&&ch<='9'){x=x*10+ch-48;ch=getchar();}x*=f;read(rest...);}
void pf(){}template <typename T, typename ...T2>
void pf( T s, T2 ...rest) {
char ch=' ';if (!s){pc('0');pc(ch);pf(rest...);return;}
int stk[100],top=0;if(s < 0)pc('-'),s=~s+1;
while(s)stk[++top]=s%10,s/=10;
do pc(stk[top--]+(1<<4)+(1<<5));while(top);
pc(ch);pf(rest...);}
int n,m;