题解 2577: 蓝桥杯2020年第十一届省赛真题-走方格 摘要:解题思路:利用记忆化递归进行搜索注意事项:注意将终点dp[n][m]设为1参考代码:#pragma GCC optimize(1) #pragma GCC optimize(2) #pragma …… 题解列表 2022年03月12日 0 点赞 0 评论 259 浏览 评分:0.0
蓝桥杯2020年第十一届省赛真题-走方格 摘要:解题思路:注意事项:参考代码:n,m = map(int,input().split())dp = [[0 for i in range(m)]for j in range(n)]for i in r…… 题解列表 2023年04月02日 0 点赞 0 评论 169 浏览 评分:0.0
简洁暴力的dfs就可以了 摘要:方向只要向下和向右,不需要开数组保存走过的路,数据量这么小,直接暴力就行#include<bits/stdc++.h>using namespace std;int n,m;long long ans…… 题解列表 2023年04月01日 1 点赞 1 评论 163 浏览 评分:0.0
暴力做法!!! 摘要:```cpp #include using namespace std; int n, m, ans = 0; const int N = 40; //行号和列号都是偶数不能步入当前…… 题解列表 2022年03月22日 0 点赞 0 评论 242 浏览 评分:0.0
简单dp-走方格 摘要:```python n,m = map(int,input().split()) dp = [[0 for j in range(m+1)] for i in range(n+1)] dp[1]…… 题解列表 2022年03月28日 0 点赞 0 评论 513 浏览 评分:0.0
暴搜 DFS走迷宫 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=35,M=35;bool vis[N][N];int ans…… 题解列表 2022年04月08日 0 点赞 0 评论 332 浏览 评分:0.0
走方格,dfs 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>#include<cstring>…… 题解列表 2022年02月21日 0 点赞 0 评论 314 浏览 评分:4.0
#C++2577——蓝桥杯2020年第十一届省赛真题-走方格(递归求解) 摘要:解题思路:用递归去遍历所有可能,对于正确的可能返回1,最后返回所有正确的情况注意事项:注意递归的调用条件参考代码:#include using namespace std; int m,n; in…… 题解列表 2022年07月25日 0 点赞 1 评论 391 浏览 评分:7.5
蓝桥杯2020年第十一届省赛真题-走方格 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,m,i,j,a[101][101]; scanf("%d %d",&n,&m); …… 题解列表 2022年02月27日 0 点赞 2 评论 541 浏览 评分:9.9
简单DP,注意边界 # 2577: 蓝桥杯2020年第十一届省赛真题-走方格(C++) 摘要:``` #define _CRT_SECURE_NO_WARNINGS 1 #include #include #include #include #include #include …… 题解列表 2024年11月22日 0 点赞 0 评论 133 浏览 评分:9.9