#include using namespace std; using ll=long long; const int e5=1e5; const int e9=1e9; void readnum(int&n,int l,char s){ int c=getchar(); assert('1'<=c&&c<='9'); n=c-'0'; while(true){ c=getchar(); if(c==s)break; assert('0'<=c&&c<='9'); assert(n*10ll+c-'0'<=l); n=n*10+c-'0'; } } int gcd(int a,int b){ return a?gcd(b%a,a):b; } ll solve3(int N,int M,int K,int op,vectorA,vectorB){ ll z=0; if(op=='+'){ mapm; for(int i=0;ima,mb; for(int i=0;iA(N),B(M); for(int i=0;i