很明显的一道网络流题。。首先把所有值的加起来,再减掉网络流最小割值就好了,问题就是如何建图。这貌似也是考了好多次了的。。。把每个人抽象成一个点p,则先是S向p连边,流量为选文科的高兴值,p向T连边,流量为选理科的高兴值。然后是same的条件,对每个人新建两个点p1, p2S向p1连边,流量为文科sa...
分类:
其他好文 时间:
2015-03-06 18:31:25
阅读次数:
329
题解:
我们把所有逆序对点都搞到同一高度。
然后发现答案是距离最远的逆序对搞到一起的代价。
代码:
#include
#include
#include
#include
#define N 5001000
#define inf 0x3f3f3f3f
using namespace std;
int n,a[N];
long long Sa,Sb,Sc,Sd,mod;
int...
分类:
其他好文 时间:
2015-03-06 11:21:48
阅读次数:
130
一、服务器端:1、安装SQLServer 采用Windows双重验证,记下sa密码;2、安装SDE For SQLServer3、一直默认安装,直到后期配置;4、输入sa密码5、设置SDE user 密码6、一直默认安装7、填入sde密码 (第5步骤填入的密码)8、一直默认至结束,并注册licens...
分类:
数据库 时间:
2015-03-01 16:54:06
阅读次数:
248
cursor: pin S
OTN 解释如下:
cursor: pin SA session waits on this event when it wants to update a shared mutex pin and another session is currently in the process of updating a shared mutex pin f...
分类:
其他好文 时间:
2015-02-28 21:42:53
阅读次数:
147
节选自语义分析的一些方法(二),以后会不断补充。——by wepon
结合文献『Deep Learning for Computer Vision』, 以下讲讲卷积神经网络的一些注意点和问题。
激励函数,要选择非线性函数,譬如tang,sigmoid,rectified liner。在CNN里,relu用得比较多,原因在于:(1)简化BP计算;(2)使学习更快。(3)避免饱和问题(sa...
分类:
其他好文 时间:
2015-02-27 20:17:55
阅读次数:
372
TCP网络编程流程套接字 struct
sockaddr{ //通用套接字数据结构 sa_family_t
sa_family; //协议族 char
sa_data[14]; //协议族数据 } 实际使用sockaddr_in,在bind时或connect时再强行转换 struct
sockaddr_in{ //以太网套接字数据结构 u8
sin_len; u8
sin_familly; u16
sin_por..
分类:
其他好文 时间:
2015-02-26 11:55:04
阅读次数:
168
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define SA struct sockaddr
#define MAXLINE 4096
#define MAXSUB ...
分类:
Web程序 时间:
2015-02-26 11:46:47
阅读次数:
152
Dental plaqueDentalplaque(匾)is the material thatadheres(坚持)to the teeth and consists ofbacterial(细菌的)cells (mainlyS. mutans变形链球菌 andS. sanguis血链球菌),sa...
分类:
其他好文 时间:
2015-02-25 23:36:04
阅读次数:
221
添加smb账号sudo smbpasswd -a xxx如果报错:Failed to add entry for user xxx 则是因为这个账号不存在添加成功以后,过一会就可以重新登陆了(ubuntu也许需要重启)注意:ubuntu右键文件夹出来的permissions需要将Group指定为sa...