摘要:
N - 畅通工程再续 N - 畅通工程再续 N - 畅通工程再续 思路:zz #include<cmath> #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> #define MAXN 310 usin 阅读全文
摘要:
L - 还是畅通工程 L - 还是畅通工程 L - 还是畅通工程 思路:水! #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> #define MAXN 10010 using namespace st 阅读全文
摘要:
K - The Unique MST K - The Unique MST K - The Unique MST #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std 阅读全文
摘要:
J - Borg Maze J - Borg Maze J - Borg Maze 思路:bfs+最小生成树。 #include<queue> #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> #def 阅读全文
摘要:
I - Agri-Net poj 1258 I - Agri-Net poj 1258 I - Agri-Net poj 1258 注意:多组数据输入。 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> 阅读全文
摘要:
转载:http://blog.csdn.net/wr_technology/article/details/53414447 一、OJ提交题目中的语言选项里G++与C++的区别 http://www.th7.cn/Program/cp/201405/199001.shtml 首先更正一个概念,C++ 阅读全文
摘要:
H - Highways H - Highways H - Highways G++提交 C++ TLE #include<cmath> #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> #define 阅读全文
摘要:
G - Arctic Network G - Arctic Network G - Arctic Network #include<cmath> #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> #de 阅读全文
摘要:
F - Truck History F - Truck History F - Truck History #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> #define MAXN 2010 usin 阅读全文
摘要:
E - QS Network E - QS Network E - QS Network 思路:最小生成树,数组不要开小了。 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> #define MAXN 阅读全文
摘要:
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 阅读全文