题解就是求可重路径覆盖之后最大化剩余点的最小权值二分答案后就是一个可重复路径覆盖处理出可达点做二分图匹配就好了 #include<cstdio> #include<cstring> #include<algorithm> #define gc getchar() #define pc putchar ...
分类:
其他好文 时间:
2020-05-02 00:05:32
阅读次数:
65
http://acm.hdu.edu.cn/showproblem.php?pid=1002 代码 #include<iostream> #include<string> #include<cstring> #include<algorithm> struct bignum { int list[2 ...
分类:
其他好文 时间:
2020-05-01 20:15:31
阅读次数:
49
算法 最小生成树 思路 我们把每个点看成一个部落,每次取最小距离的两个抱团,同时部落也减少了一个....然后减减减,直到部落数==目标数,此时下一个不同部落的距离就是最短的距离! 代码 #include<iostream> #include<cstring> #include<algorithm> ...
分类:
Web程序 时间:
2020-05-01 18:49:02
阅读次数:
70
#include <cmath> #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 5000100; int n, m, cnt, fa[N], sum; dou ...
分类:
其他好文 时间:
2020-05-01 16:38:02
阅读次数:
54
package _Sort.Algorithm /** * https://www.geeksforgeeks.org/heap-sort/ * https://www.cnblogs.com/chengxiao/p/6129630.html * * Heap Sort is an in-place ...
分类:
其他好文 时间:
2020-05-01 14:24:26
阅读次数:
41
Nim游戏的结论就是先手异或和不为0的时候必胜,所以留下线性基就行了。 ...
分类:
其他好文 时间:
2020-05-01 12:53:35
阅读次数:
47
研究生复试题这么水的吗。。 根据合法距离得到所有合法边,跑一遍Kruscal以后判断所有点是不是有相同的祖先即可。 1 #include<iostream> 2 #include<algorithm> 3 #include<math.h> 4 #include<string.h> 5 using n ...
分类:
其他好文 时间:
2020-05-01 12:49:48
阅读次数:
57
已经建的边两个端点合并一下再跑Kruscal就好了 注意:cin会被卡 1 #include<iostream> 2 #include<algorithm> 3 using namespace std; 4 struct node{ 5 int from,to,w; 6 bool operator ...
分类:
其他好文 时间:
2020-05-01 12:20:31
阅读次数:
56
https://blog.csdn.net/zhangpeterx/article/details/89175991 二、解决方法 因为我一开始是直接在Pycharm里安装的tensorflow-gpu库,个人感觉应该是缺少了相关的库安装导致的。故我使用conda再次安装一下tensorflow-g ...
分类:
编程语言 时间:
2020-05-01 00:59:27
阅读次数:
95