C++最纯粹的解法 #include<iostream> #include<vector> using namespace std; int min1=999,n=0,m=0; int a[10][10] = {0}; int book[10][10] = {0}; void dfs(int x, int y, vector<pair<int,int> > &ans, int step,vector<pair<int ,int> > &ans_finsh) { int fx[4][2] = { ...