HDU 5512
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=5512gcd(a,b)的位置都是可以选的,之后判断一下奇偶#include #include using namespace std;int gcd(int a, int b) { return a == 0...
阅读全文
HDU 1863
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1863复习考研练练写Prim,第一次写,乱搞的,有点难看邻接表+堆#include #include #include #include using namespace std;int n, m, cnt, ct,...
阅读全文