LETTERS 搜搜搜搜搜搜 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量r和s,kkk初始化为-1 int r, s, kkk …… 题解列表 2024年11月23日 0 点赞 0 评论 476 浏览 评分:0.0
dfs求解最长“不同字符路径”(map版) 摘要: #include #include using namespace std; const int N = 25; map ma; int n, m,step; int d…… 题解列表 2025年03月06日 0 点赞 0 评论 414 浏览 评分:0.0
dfs菜鸟级包能懂 摘要:解题思路:dfs直接搜,拿一个数组存一下访问过的数组就行啦,变量名不规范见谅注意事项:参考代码:#include<bits/stdc++.h>using namespace std;con…… 题解列表 2025年04月07日 0 点赞 0 评论 259 浏览 评分:0.0
DFS集合set实现 摘要:解题思路: 用集合,记载路径中的字符。结合深度优先搜索实现。注意事项:参考代码://LETTERS 深搜与回溯#include <bits/s…… 题解列表 2025年05月16日 0 点赞 0 评论 278 浏览 评分:0.0
3035: LETTERS最多能走过的不同字母的个数 摘要:解题思路:注意事项:dfs函数中要注意最后一定要写ch_flag[ch_idx]=false;防止回溯的时候出现错误参考代码:#include<stdio.h>#include<st…… 题解列表 2025年12月04日 0 点赞 0 评论 121 浏览 评分:0.0