// #include <iostream> #include <vector> #include <string> #include <map> using namespace std; class solution { public: int count; vector<vector<char> > ss; string str; public: void deal(int i,int j,int now,int type) { if(i<=ss....