题解 2577: 蓝桥杯2020年第十一届省赛真题-走方格

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

简洁暴力的dfs就可以了

摘要:方向只要向下和向右,不需要开数组保存走过的路,数据量这么小,直接暴力就行#include<bits/stdc++.h>using namespace std;int n,m;long long ans……

暴力做法!!!

摘要:```cpp #include using namespace std; int n, m, ans = 0; const int N = 40; //行号和列号都是偶数不能步入当前……

简单dp-走方格

摘要:```python n,m = map(int,input().split()) dp = [[0 for j in range(m+1)] for i in range(n+1)] dp[1]……

暴搜 DFS走迷宫

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=35,M=35;bool vis[N][N];int ans……

走方格,dfs

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>#include<cstring>……