#include #include #include #include using namespace std; const int maxn=100005; long long res; int n,a[maxn],b[maxn]; char s[10]; map mp; void GB(int *a,int *b,int len) { if(len<=1) return; int M=len/2,p1=0,p2=M,p=0; GB(a,b,M); GB(a+M,b+M,len-M); while(p1