。。。。。。 std::pair<int , int> indx[4] = {{0,1} ,{1 , 0},{0,-1} , {-1 ,0}} ; int n ; void modify(int x , std::vector<std::vector<char>> &g) { std::pair<int , int> pre = {x , x} , now = {x, x + 1} ; char p = g[x][x] ; int k = 0 ; while ( now.first != x || now.second != x...