#include using namespace std; #define ll long long int #define mp make_pair #define mod 1000000000 #define pb push_back vectora[51234],b[51234]; int dp[51234]; int segTreea[212345],segTreeb[212345],lazya[212345],lazyb[212345]; void init() { for(int i=0;i<51234;i++){ a[i].clear(); b[i].clear(); dp[i]=-1; } for(int i=0;i<212345;i++){ segTreeb[i]=0; segTreea[i]=0; lazya[i]=0; lazyb[i]=0; } return ; } void updatea(int low,int high,int qlow,int qhigh,int pos,int val) { if(lazya[pos]!=0) { segTreea[pos]+=lazya[pos]; if(low!=high) { lazya[2*pos+1]+=lazya[pos]; lazya[2*pos+2]+=lazya[pos]; } lazya[pos]=0; } if(low>qhigh || highqhigh || highqhigh || highqhigh || high> t; while(t--) { init(); int m,n; cin >> m >> n; int s[n+5],e[n+5]; char lol[n+5]; for(int i=0;i> lol[i]; for(int i=0;i> s[i]; for(int i=0;i> e[i]; for(int i=0;i