二分搜索思想:bool C(double x)可以得到长度为x的绳子//#define
LOCAL#include#includeint const MAX_N=10005;int const MAX_M=100;double const
INF=100000000;int N,K;double d...
分类:
其他好文 时间:
2014-05-17 00:13:44
阅读次数:
271
private static String getWebInfPath() { URL url =
当前类.class.getProtectionDomain().getCodeSource().getLocation(); String path =
url.toString(); int ...
分类:
编程语言 时间:
2014-05-15 16:54:07
阅读次数:
378
systeminfo/c net localgroup administrators(user)
分类:
其他好文 时间:
2014-05-14 22:38:42
阅读次数:
290
算了下复杂度好像是n^3 就感觉不大好做。结果n^31a。。。
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define eps 1e-9
#define PI acos(-1.0)
#define N 1005
#define inf ...
分类:
Web程序 时间:
2014-05-14 20:11:42
阅读次数:
309
手动模拟。。
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define N 10100
#define inf 1000000010
mapx,y;
struct X{
int x,y;
bool operator<(const X&a)const{...
分类:
其他好文 时间:
2014-05-13 07:29:10
阅读次数:
294
FileSystemObject组件应该实例
read="michael.txt"
'获取文件真实路径
read=LEFT(Server.MapPath(Request.ServerVariables("PATH_INFO")),InstrRev(Server.MapPath(Request.ServerVariables("PATH_INF...
分类:
其他好文 时间:
2014-05-13 07:17:51
阅读次数:
283
有很多光盘放入光驱就会自动运行,它们是怎么做到的呢?光盘一放入光驱就会自动被执行,主要依靠两个文件,一是光盘上的AutoRun.inf文件,另一个是操作系统本身的系统文件之一的Cdvsd.vxd。Cdvsd.vxd会随时侦测光驱中是否有放入光盘的动作,如果有的话,便开始寻找光盘根目录下的AutoRu...
分类:
其他好文 时间:
2014-05-12 11:17:14
阅读次数:
234
1.解压下载到的struts-2.3.16压缩包。2.将struts2-blank\WEB-INF\lib
下的jar包复制到Eclipse项目下的libs文件夹下。3.struts-2.3.16\apps\struts2-blank\WEB-INF\classes目录下的struts.xml文件复...
分类:
其他好文 时间:
2014-05-11 22:46:24
阅读次数:
335
题目链接:点击打开链接
题意比较明显,不赘述。
删除时可以把i-1转到根,把i+1转到根下
则i点就在 根右子树 的左子树,且只有i这一个 点
#include
#include
#include
#include
using namespace std;
#define N 300500
#define inf 10000000
#define L(x) tree[x].ch[0]
#d...
分类:
其他好文 时间:
2014-05-11 21:05:52
阅读次数:
365
证明:令$\alpha = {\inf }\limits_{n \ge 1} \left\{
{\frac{{\ln {a_n}}}{n}} \right\}$,由下极限的定义知\[\alpha \le \mathop {\underline {\lim
} }\limits_{n \to \inf...
分类:
其他好文 时间:
2014-05-10 18:00:22
阅读次数:
317