题意:n(n >项目必须解决相应的技术问题,技术问题之间也存在依赖,相应闭合图,最大收益相应最大权和。。于是,最大权闭合图,最小割,最大流上场。。建图:1)超级源S = n + m, 超级汇T = n + m + 12)对于每一个项目i:S -> i (profit[i])3)对于每一个技术问题i:...
分类:
其他好文 时间:
2015-04-01 17:12:27
阅读次数:
117
先对于每种可能的PK情况进行判断胜负,然后求最小改动最大匹配。#include #include #include #include #include #include #include #include #define rep(i, l, r) for(int i=l; i=hp2[y]) ret...
分类:
其他好文 时间:
2015-04-01 00:05:47
阅读次数:
158
RSA简介
RSA算法据说是目前地球上最重要的加密算法。维基百科是这么介绍的:“对极大整数做因数分解的难度决定了RSA算法的可靠性。换言之,对一极大整数做因数分解愈困难,RSA算法愈可靠。假如有人找到一种快速因数分解的算法,那么RSA的可靠性就会极度下降。但找到这样的算法的可能性是非常小的。今天只有短的RSA密钥才可能被暴力破解。到2008年为止,世界上还没有任何可靠的攻击RSA算法的方...
分类:
编程语言 时间:
2015-03-30 23:12:34
阅读次数:
290
Good subsequenceProblem's Link: http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1553Mean:给你一个长度为n的序列和一个值k,让你找出一个子序列,满足在这个子序列中max-min的值#include#includ...
分类:
其他好文 时间:
2015-03-30 18:05:09
阅读次数:
100
URL重写指南 http://man.chinaunix.net/newsoft/ApacheManual/misc/rewriteguide.html http://www.111cn.net/phper/apache/46384.htm 1) R[=code](force redirect) 强制外部重定向? 强制在替代字符串加上http://...
分类:
Web程序 时间:
2015-03-30 14:46:12
阅读次数:
177
【问题描述】给出n个数qi,给出Fj的定义如下:令Ei=Fi/qi。试求Ei。【输入格式】输入文件force.in包含一个整数n,接下来n行每行输入一个数,第i行表示qi。【输出格式】输出文件force.out有n行,第i行输出Ei。与标准答案误差不超过1e-2即可。【样例输入】54006373.8...
分类:
其他好文 时间:
2015-03-30 12:52:49
阅读次数:
158
I would like to force the overflow icon to always show in the action bar (assuming there are overflow items). On models with a menu button, sometimes the overflow icon doesn‘t appear and users must...
分类:
其他好文 时间:
2015-03-28 20:31:01
阅读次数:
153
我们更新了QQ sdk的新包,而QQ的新包加了一个so文件,该文件eclipse的默认检查比较严格。
Eclipse->windows->Perferences ,
取消 Force error when external jars contain native libraries.
取消 Skip packaging and dexing until export and lunch. (...
分类:
编程语言 时间:
2015-03-28 17:18:37
阅读次数:
151
为了减少软件扫描ssh登陆 还是用这个比较好点 默认端口号22 也要改 登陆密码也不要使用 弱口令 123456 这样的DescriptionDenyHosts is a python program that automatically blocks ssh attacks by adding e...
分类:
其他好文 时间:
2015-03-28 16:55:22
阅读次数:
1510