题解列表
连通图(sf14d)
摘要:解题思路:注意事项:真的很无语参考代码:#include<bits/stdc++.h>using namespace std;short father[20005];int n,m,w;i……
连通图(sf14e)
摘要:解题思路:在处理边的关系时,边的两个端点的根相同,则这条边冗余注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int ……
vector字符串(sf12a)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s1; while(cin>……
set去重且排序(sf12b)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ set<int>myset; //s……
set\vector\map综合应用(sf12c)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int change(int x)//将x转化为字符型,对x的个位十位百……
mp方法(sf12d)
摘要:解题思路:注意事项:容易超时参考代码:#include<bits/stdc++.h>using namespace std;int main(){ map<string,string……
全排列next_permuntation()(sf12e)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[9]={1,2,3,4,5,6,7,8,9};//7254=……
全排列(sf12f)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s1; ……
截取字符串的某段(sf12g)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; st……