bfs........ (Java) 摘要:解题思路: 画个图,注意事项:参考代码:import java.util.Scanner;public class A2577 { public static void main(String[] a…… 题解列表 2022年03月23日 0 点赞 0 评论 437 浏览 评分:9.9
简单的动态规划 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int dp[40][40] = {0}; int n,m…… 题解列表 2022年03月22日 0 点赞 0 评论 313 浏览 评分:9.9
dfs!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 摘要:```cpp #include using namespace std; string s1; int arr[100][100]; int vis[100][100] = {0}; in…… 题解列表 2022年03月13日 0 点赞 0 评论 286 浏览 评分:9.9
优质题解 蓝桥杯2020年第十一届省赛真题-走方格【DFS/DP】 摘要:按照dfs模板套着套着,写着写着,就出来了 ```cpp #include #include using namespace std; int n,m; int vis[30][30]…… 题解列表 2022年03月12日 0 点赞 0 评论 987 浏览 评分:9.9
蓝桥杯2020年第十一届省赛真题-走方格 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,m,i,j,a[101][101]; scanf("%d %d",&n,&m); …… 题解列表 2022年02月27日 0 点赞 2 评论 569 浏览 评分:9.9
#C++2577——蓝桥杯2020年第十一届省赛真题-走方格(递归求解) 摘要:解题思路:用递归去遍历所有可能,对于正确的可能返回1,最后返回所有正确的情况注意事项:注意递归的调用条件参考代码:#include using namespace std; int m,n; in…… 题解列表 2022年07月25日 0 点赞 1 评论 432 浏览 评分:7.5
走方格,dfs 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>#include<cstring>…… 题解列表 2022年02月21日 0 点赞 0 评论 342 浏览 评分:4.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 评论 537 浏览 评分: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 评论 361 浏览 评分:0.0
暴力做法!!! 摘要:```cpp #include using namespace std; int n, m, ans = 0; const int N = 40; //行号和列号都是偶数不能步入当前…… 题解列表 2022年03月22日 0 点赞 0 评论 264 浏览 评分:0.0