传送门 https://www.luogu.org/problemnew/show/P4329 题解 首先有一个最简单的状压解法。 设$f_{sta}$表示选定的人的状态为$sta$,他们去执行前几个任务的最大成功率,直接枚举转移。复杂度$O(n \times 2^n)$。 然后还有两种写法(本质相 ...
分类:
其他好文 时间:
2019-01-06 21:53:28
阅读次数:
201
step 0:安装网卡绑定的功能 apt-get install ifenslave step 1:加载内核模块:编辑 /etc/modules,添加: step 2:编辑网卡配置:/etc/network/interfaces ...
分类:
系统相关 时间:
2018-12-14 22:41:09
阅读次数:
412
状压DP $dp[i]$表示当前选人状态为$i$且选择了前$i.count()$个物品时最大的概率 cpp include"cstdio" include"cstring" include"iostream" include"algorithm" using namespace std; const ...
分类:
其他好文 时间:
2018-12-04 14:49:16
阅读次数:
149
Linux双网卡绑定脚本linux运维及配置工作中,常常会用到双网卡绑定,少数几台服务器的配置还好,如果是需要配置几十甚至上百台,难免会枯燥乏味,易于出错,我编写了这个双网卡绑定的辅助脚本,可傻瓜式地完成linux双网卡绑定工作,当然,该脚本主要还是用于小批量的系统配置,如需配置大量的服务器,可提取脚本中的bonding函数,稍作修改即可,你值得一试!1.适用范围该shell脚本可在以下linux
分类:
系统相关 时间:
2018-11-26 17:22:56
阅读次数:
148
--添加债券期限字段 declare cn integer; begin cn := 0; select count(*) into cn from user_tab_cols t where t.table_name='T_BANK_BOND_MARKET_SET' and t.column_na ...
分类:
数据库 时间:
2018-11-16 17:33:14
阅读次数:
577
1. u boot/drivers/mtd/spi/sf_params.c 这个文件定义了支持的nor flash 2. 依据不同的型号更改配置 ··· diff git a/configs/dra7xx_evm_defconfig b/configs/dra7xx_evm_defconfig in ...
分类:
移动开发 时间:
2018-11-13 10:26:11
阅读次数:
202
一、bond模式 Mode=0(balance-rr) 表示负载分担round-robin,和交换机的聚合强制不协商的方式配合 Mode=1(active-backup) 表示主备模式,只有一块网卡是active,另外一块是备的standby,这时如果交换机配的是捆绑,将不能正常工作,因为交换机往两 ...
分类:
其他好文 时间:
2018-11-09 19:30:57
阅读次数:
2606
本文摘抄自 https://www.cnblogs.com/liwanggui/p/6807212.html centos7网卡bond配置 centos7网卡bond配置1 备份网卡配置文件2 使用nmcli命令配置bond3 修改bond0网卡配置4 重启网络,验证配置结果5 删除 bond 设 ...
分类:
其他好文 时间:
2018-11-05 16:22:26
阅读次数:
419
序列化 序列化配置有几个坑这里我写出来 新建实体类 引用的包 Microsoft.Orleans.Core V2.12 Microsoft.Orleans.OrleansCodeGenerator.Build V2.12 Microsoft.Orleans.Serialization.Bond V2 ...
分类:
其他好文 时间:
2018-11-04 14:14:30
阅读次数:
513
This time let us consider the situation in the movie "Live and Let Die" in which James Bond, the world's most famous spy, was captured by a group of d ...
分类:
其他好文 时间:
2018-11-01 11:46:47
阅读次数:
160