#include<bits/stdc++.h>
using namespace std;
char a[20][20];//地图
int n,m;//行列
int cnt;//答案数
bool flag[20][20];
int dx[]={0,1,0,-1};//行变化
int dy[]={1,0,-1,0};//列变化
struct node
{
int x,y;
}path[400];
void dfs(int step,int sx,int sy)
{
if(sx==n&&sy==m)
{
cout<<++cnt<<":1,1";
for(int i=1;i<step;i++)
{
cout<<"->"<<path[i].x <<","<<path[i].y ;
}
cout<<endl;
return;
}
for(int i=0;i<4;i++)
{
05-24
1128
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交