题解列表
连通图(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]……
分数线的划定很容易,就像她跟我划清界限一样
摘要:#include <stdio.h>#include <math.h>typedef struct{ &nbs……
每个数的个数(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……
代码要求基础,新手就能懂
摘要:解题思路:自己看注意事项:没有参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char str[3][10……
借用改写了用sort()
摘要:解题思路:注意事项:参考代码:while 1: try: n = int(input()) if n ……