题解列表

筛选

队列queue(sf13a)

摘要:解题思路:注意事项:在操作2时,当队列为空时,输出no,且return 0(退出);参考代码:#include<bits/stdc++.h>using namespace std;int ……

连通图(sf14b)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=100005;int father[N];//找……

连通图是否连通(sf14a)

摘要:解题思路:注意事项:记得压缩路径参考代码:#include<bits/stdc++.h>using namespace std;const int N=1005;int father[N]……

每个数的个数(cx12h)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;map<int,int>mp;int main(){ int……

s01串(cx12g)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s,c; s="0&qu……