class Solution { public: int nex[4][2] = {{0,-1},{0,1},{-1,0},{1,0}}; bool vis[100][100]; int r; int c; int getsum(int x){ int ans = 0; while(x){ ans += x%10; x /= 10; } return ans; } int ans; void bfs(int x,int ...