mp方法(sf12d) 摘要:解题思路:注意事项:容易超时参考代码:#include<bits/stdc++.h>using namespace std;int main(){ map<string,string…… 题解列表 2025年06月02日 0 点赞 0 评论 91 浏览 评分:0.0
set\vector\map综合应用(sf12c) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int change(int x)//将x转化为字符型,对x的个位十位百…… 题解列表 2025年06月02日 0 点赞 0 评论 90 浏览 评分:0.0
set去重且排序(sf12b) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ set<int>myset; //s…… 题解列表 2025年06月02日 0 点赞 0 评论 94 浏览 评分:0.0
vector字符串(sf12a) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s1; while(cin>…… 题解列表 2025年06月02日 0 点赞 0 评论 85 浏览 评分:0.0
连通图(sf14e) 摘要:解题思路:在处理边的关系时,边的两个端点的根相同,则这条边冗余注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int …… 题解列表 2025年06月01日 0 点赞 0 评论 86 浏览 评分:0.0
连通图(sf14d) 摘要:解题思路:注意事项:真的很无语参考代码:#include<bits/stdc++.h>using namespace std;short father[20005];int n,m,w;i…… 题解列表 2025年06月01日 0 点赞 0 评论 85 浏览 评分:0.0
连通图(sf14b) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=100005;int father[N];//找…… 题解列表 2025年06月01日 0 点赞 0 评论 98 浏览 评分:0.0
连通图是否连通(sf14a) 摘要:解题思路:注意事项:记得压缩路径参考代码:#include<bits/stdc++.h>using namespace std;const int N=1005;int father[N]…… 题解列表 2025年06月01日 0 点赞 0 评论 87 浏览 评分:0.0