一、匹配数字串/flash/([0-9]+).htm二、匹配不含双引号的字符串([^\"]+)三、匹配一行cnt\">(.+)\n四、匹配多行的"divAll\">([\\s\\S]*)([\\s\\S]*?)<div
id=\"divFooter"
分类:
Web程序 时间:
2014-05-05 21:41:42
阅读次数:
300
题目链接:http://poj.org/problem?id=1011
这道题用到了深搜+剪枝。
#include
#include
#include
using namespace std;
int a[65];
int vis[65];
int n;
int cmp(int x,int y)
{
return x>y;
}
int dfs(int len,int need,int ...
分类:
其他好文 时间:
2014-05-05 13:28:57
阅读次数:
290
Vitaly has an array of n distinct integers. Vitaly wants to divide this array into three non-empty sets
so as the following conditions hold:
The product of all numbers in the first set is less ...
分类:
其他好文 时间:
2014-05-03 23:51:19
阅读次数:
621
http://poj.org/problem?id=1486题意:给n个矩形的4个边界的坐标(左上和右下),分别是:xmin、xmax、ymin、ymax。又给出四个数字的坐标。每个数字只能属于一个矩形。求出每个数字的从属关系。题解:二分图最大匹配问题:数字和矩形的匹配。要求出每一条必须边。先求出最...
分类:
其他好文 时间:
2014-05-03 23:41:48
阅读次数:
310
1.[root@rusky ~]# id #显示当前用户的主组和备用组uid=0(root)
gid=0(root)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)[root@rusky ~]#
groups #显...
分类:
其他好文 时间:
2014-05-03 23:23:18
阅读次数:
647
DOM
最大的作用就是将整个文档通过节点树来展现。通过类似方法可以获取特定节点,并绑定js方法实现与人的交互。1.通过dom方法,获取页面的元素(getElementsByTagName/id,通过class(getAttribute))2.获取元素之后,为他们绑定行为(点击/其他)的处理事件3.最...
分类:
Web程序 时间:
2014-05-03 22:35:57
阅读次数:
458
婚假也不能虚度。 1
1:jquery可以加载多个ready函数,而原始的js只能加载一次onload 2 2:用dom对象得到的对象不能使用jquery中的方法,比如var
p=document.getElementById("id"),此时p不能这样使用p.html(),而应该使用inner.....
分类:
Web程序 时间:
2014-05-03 22:31:11
阅读次数:
367
Let's consider a triangle of numbers in which a number appears in the first line, two numbers appear in the second line, three in the third line, etc. Develop a program which will compute the largest ...
分类:
其他好文 时间:
2014-05-03 17:32:22
阅读次数:
284
本文出自:http://blog.csdn.net/svitter
原题:http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=1053
题意:完全背包不解释。。直接贴代码。。
#include
#include
#include
using namespace std;
#defi...
分类:
其他好文 时间:
2014-05-03 16:06:14
阅读次数:
324
Struts2实现文件上传
配置文件struts.xml
<!--
/*
* $Id: struts.xml 1364077 2012-07-21 12:57:02Z lukaszlenart $
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor licens...
分类:
其他好文 时间:
2014-05-03 15:41:44
阅读次数:
348