c++骑马修栅栏(栈) 摘要:```cpp#include #include #include #include #include #include using namespace std;in…… 题解列表 2025年03月19日 0 点赞 0 评论 214 浏览 评分:0.0
最短路径问题(floyd) 摘要:注意事项:floyd适用于ns>>t; //起点与终点 floyd(); cout…… 题解列表 2025年03月20日 0 点赞 0 评论 195 浏览 评分:0.0
孤独的骑士-模拟 摘要:解题思路:模拟注意事项:参考代码:#include<iostream>usingnamespacestd;intd[8][2]=&n…… 题解列表 2025年03月20日 0 点赞 0 评论 234 浏览 评分:0.0
密码截获:模拟 + 剪枝 摘要:解题思路:模拟 + 剪枝注意事项:参考代码:#include<iostream>usingnamespacestd;boolispd(strin…… 题解列表 2025年03月20日 0 点赞 0 评论 182 浏览 评分:0.0
并查集(本题输入会超时要关闭输入流) 摘要:#include<bits/stdc++.h>using namespace std;const int N = 1e5 + 5;int fa[N], rk[N];int n, m;voi…… 题解列表 2025年03月20日 0 点赞 0 评论 317 浏览 评分:0.0
年会-树形DP 摘要:解题思路:树形DPf[x][0]表示以x为根的子树,且x不参加舞会的最大快乐值f[x][1]表示以x为根…… 题解列表 2025年03月20日 0 点赞 0 评论 429 浏览 评分:0.0
C++ : 类和两种访问权限的练习 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;class sum{ priva…… 题解列表 2025年03月21日 1 点赞 0 评论 1196 浏览 评分:0.0
C++ : 类和两种访问权限的练习 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;const int n=3 ;class MAX{&nb…… 题解列表 2025年03月21日 0 点赞 0 评论 1492 浏览 评分:0.0
一笔画问题(dfs) 摘要:#include<bits/stdc++.h>using namespace std;int n, m, c;const int N = 1e3 + 5;int mapp[N][N], s…… 题解列表 2025年03月21日 0 点赞 0 评论 1296 浏览 评分:0.0
bfs+优先队列 摘要:```cpp#include using namespace std;const double INF=1e-8; //控制误差(必要)vector expence[2005]; …… 题解列表 2025年03月21日 0 点赞 0 评论 88 浏览 评分:0.0