摘要:
D - Constructing Roads D - Constructing Roads D - Constructing Roads 思路:并查集板子 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm 阅读全文
摘要:
C - Building a Space Station C - Building a Space Station C - Building a Space Station 思路:并查集板子。 #include<cmath> #include<cstdio> #include<cstring> #i 阅读全文
摘要:
B - Networking B - Networking B - Networking 思路:并查集板子。 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; 阅读全文
摘要:
A - Jungle Roads A - Jungle Roads A - Jungle Roads 思路:并查集的板子,重点是字符的转换,不能忘了加上1。 #include<cmath> #include<cstdio> #include<cstdlib> #include<cstring> #i 阅读全文