void dfs(int step)
{
if(边界成立)
{
。。。。
return;
}
for(尝试每一种可能)
{
把这种可能标记表示走过
继续下一步dfs(step+1);
把这种可能标记去除
}
return;
}
dfs一般套路
admin
11月 14, 2020
0
近期评论