码迷,mamicode.com
首页 >  
搜索关键字:edge    ( 2375个结果
D. Relatively Prime Graph
Let's call an undirected graph G=(V,E)G=(V,E) relatively prime if and only if for each edge (v,u)∈E(v,u)∈E GCD(v,u)=1GCD(v,u)=1 (the greatest common d ...
分类:其他好文   时间:2018-07-15 19:44:23    阅读次数:172
Educational Codeforces Round 47 D
Let's call an undirected graph $G=(V,E)$ relatively prime if and only if for each edge $(v,u)∈E$ $GCD(v,u)=1$ (the greatest common divisor of vv and u ...
分类:其他好文   时间:2018-07-15 11:16:23    阅读次数:128
centos6.5卸载及安装git
一、卸载原有的git 用whereis git命令来检查是否已经安装了git版本的 再使用命令:yum remove git卸载git 二、安装git (一)官网下载:https://mirrors.edge.kernel.org/pub/software/scm/git/ → → → (右键→复制 ...
分类:其他好文   时间:2018-07-14 22:17:48    阅读次数:270
zynq ethtool 交叉编译
下载ethtool源码 https://mirrors.edge.kernel.org/pub/software/network/ethtool/ tar -xvf ethtool-4.17.tar.xz cd ethtool-4.17 ./configure --host=arm-linux CC ...
分类:其他好文   时间:2018-07-08 23:03:33    阅读次数:525
最短路 Bellman-Ford
#include #include #include #include #include #include using namespace std; struct uio{ int from,to,que; }edge[1001]; int road[1001],n,m; int main() { ... ...
分类:其他好文   时间:2018-07-08 19:04:53    阅读次数:120
Centos7上安装docker
Docker从1.13版本之后采用时间线的方式作为版本号,分为社区版CE和企业版EE。 社区版是免费提供给个人开发者和小型团体使用的,企业版会提供额外的收费服务,比如经过官方测试认证过的基础设施、容器、插件等。 社区版按照stable和edge两种方式发布,每个季度更新stable版本,每个月份更新 ...
分类:其他好文   时间:2018-07-07 20:23:49    阅读次数:175
关押罪犯
P1525 关押罪犯 好久不做并查集了…… 我们把fa[i + n]看作i的敌人的集合 ↑与食物链有几分相似 把仇视关系按权值从大到小排序 一个个合并 1 sort(edge + 1, edge + m + 1, cmp); 2 for(int i = 1; i <= (n << 1); i++) ...
分类:其他好文   时间:2018-07-01 12:26:36    阅读次数:153
判断无向图两点间是否存在长度为K的路径
1 #include 2 #include 3 #define MAXN 5 4 using namespace std; 5 6 struct edge 7 { 8 int f,t; 9 edge(int f, int t) :f(f), t(t) {} 10 }; 11 12 vector ed... ...
分类:其他好文   时间:2018-06-29 21:40:30    阅读次数:215
CSS实现垂直居中
垂直居中的方法有很多,在此记录一个我找到的简单好用的方法。 需要规定一个父DIV和一个子DIV,子DIV在父DIV里会垂直居中,然后把你想垂直居中的内容放在子DIV里就可以了。 chrome、firefox和IE均可用。IE只测试了Edge和IE11。 这个方法的好处是,如果你有多个不同类型的元素, ...
分类:Web程序   时间:2018-06-29 19:28:53    阅读次数:192
PAT 1126 Eulerian Path
In graph theory, an Eulerian path is a path in a graph which visits every edge exactly once. Similarly, an Eulerian circuit is an Eulerian path which ...
分类:其他好文   时间:2018-06-28 20:46:14    阅读次数:166
2375条   上一页 1 ... 68 69 70 71 72 ... 238 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!