#include<iostream> #include<vector> using namespace std; vector<int> res; int M, N; void findWay(int i, int index, vector<int> &road){ if (i < 1 || i > N) return; if(index == road.size()){ if (i >= 1 && i <= N) res.push_back(i); return; }...