摘要:
法一:DFS!!(详细看注释) #include<bits/stdc++.h> using namespace std; int n,m;//行列 char mp[70][70];//地图 int next[4][2]={{-1,0},{1,0},{0,-1},{0,1}};//方向 int ans 阅读全文
摘要:
http://ybt.ssoier.cn:8088/problem_show.php?pid=1219 #include<bits/stdc++.h> using namespace std; int t;//测试组数 int n, m;//地图行列 int stx, sty;//初始位置 int 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; int n,k,sum; char mp[10][10]; bool l[10]; void dfs(int x,int y){ if(y>=k){ sum++; return ; }//每摆完一组棋子,方案加 阅读全文