[HAOI2017]八纵八横 1 题目描述 Anihc 国有 n个城市,这 n个城市从 1到 n编号,1号城市为首都。城市间初始时有 m条高速公路,每条高速公路都有一个非负整数的经济影响因子,每条高速公路的两端都是城市(可能两端是同一个城市),保证任意两个城市都可以通过高速公路互达。 国正在筹划“八 ...
分类:
其他好文 时间:
2020-06-16 20:23:57
阅读次数:
53
[WC2019]数树(树形dp+多项式exp) Part1 相同边连接的点同一颜色,直接模拟即可 namespace pt1{ int fa[N],sz[N]; map <int,int> M[N]; int Find(int x){ return fa[x]==x?x:fa[x]=Find(fa[ ...
分类:
其他好文 时间:
2020-06-16 18:40:55
阅读次数:
42
E:\SourceCode\VUE\vue-element-admin-master>cnpm run dev > vue-element-admin@4.3.0 dev E:\SourceCode\VUE\vue-element-admin-master > vue-cli-service ser ...
分类:
Web程序 时间:
2020-06-16 18:35:15
阅读次数:
448
可以执行下面命令 php -r "readfile('https://getcomposer.org/installer');" | php This will install composer to the current directory so that you can use php com ...
分类:
其他好文 时间:
2020-06-16 18:19:03
阅读次数:
134
题目: Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. Y ...
分类:
其他好文 时间:
2020-06-16 12:50:35
阅读次数:
58
Searching a string using the ‘Find‘ or ‘Find & Replace‘ function in text editors highlights the relevant match (e.g. searching ‘le‘ highlights it insi ...
分类:
其他好文 时间:
2020-06-15 23:19:53
阅读次数:
101
1.保持单元测试小巧、快速 理论上,任何代码提交前都应该完整跑一遍所有测试套件。保持测试代码执行符合预期,这样能够缩短迭代开发周期。 2.单元测试应该是全自动/非交互式的 测试套件通常是定期执行的,执行过程必须完全自动化才有意义。输出结果需要人工检查的测试不是一个好的单元测试。 3.让单元测试很容易 ...
分类:
其他好文 时间:
2020-06-15 21:18:24
阅读次数:
64
stat,查看文件元数据信息 Hedump cp,拷贝 mkdir 创建目录 touch 创建文件 硬链接 file查看文件信息 文件查找loacte 查找文件 find 打爆压缩类命令 实例讲解 ...
分类:
系统相关 时间:
2020-06-15 17:22:37
阅读次数:
51
Misc rehash 是分 db 的 redis db 中的 字典什么情况下会自动 rehash redis 中的 key 淘汰, 定时被动淘汰(有2 种模式)。 另外则是每次访问到 key 都会检查一下 key 是否过期则删除(也能减少部分 key) key 的读写分多套接口,基本上读写的功能函 ...
分类:
其他好文 时间:
2020-06-15 15:58:00
阅读次数:
59
public void deleteAirConditionInfo(DeviceAirConditionInfo delete) { DeviceAirConditionInfo aircondition = em.find( DeviceAirConditionInfo.class, delet ...
分类:
其他好文 时间:
2020-06-15 15:57:01
阅读次数:
90