#include #include using namespace std; int main(int argc, char* argv[]) { int N,M,i; cin>>N>>M; string S1,S2; cin>>S1; cin>>S2; int S1_A=0; int S1_B=0; int S2_A=0; int S2_B=0; for (i=0;i