#include #include std::ifstream fin("edit.in"); std::ofstream fout("edit.out"); constexpr int N=100003; char s1[N],s2[N],t1[N],t2[N]; int e1[N],e2[N]; int main() { int t; fin>>t; while(t--) { int n,le1=0,le2=0,z1=0,z2=0; fin>>n>>s1>>s2>>t1>>t2,e1[le1++]=0,e2[le2++]=0; for(int i=0;i