题目地址:HDU 3277这题跟这题的上一版建图方法差点儿相同,仅仅只是须要拆点。这个点拆的也非常巧妙,既限制了流量,还仅仅限制了一部分,曾经一直以为拆点会所有限制,原来也能够用来分开限制,学习了。建图方法为:建一源点与汇点,将女孩进行拆点,拆成i和i+n,将i与源点连边,权值为mid,将i与i+n...
分类:
其他好文 时间:
2014-08-26 19:34:16
阅读次数:
243
问题:
NETCA to CreateListener Fails with CRS-0215 and the Created Listener Does Not Start
做添加节点的实验 创建NETCA时报错crs-0215
查看metalink相关文章发现 是因为vip的问题,果然看了一下节点3的vip在其他节点上
[root@rac3 bin]# ./crs_stat...
分类:
其他好文 时间:
2014-08-26 17:20:06
阅读次数:
422
if(!preg_match("/^13[0-9]{1}[0-9]{8}$|15[0-9]{1}[0-9]{8}$|18[0-9]{1}[0-9]{8}$|145[0-9]{8}$$/",$phone)){
echo "alert('手机号不正确!')";
echo "location='register.php'";
exit;
}...
分类:
移动开发 时间:
2014-08-26 11:46:15
阅读次数:
188
1.在XHL中:android:id="@+id/spinner1"android:layout_width="match_parent"android:layout_height="wrap_content"android:entries="@+array/other" />在string.xml...
分类:
移动开发 时间:
2014-08-26 08:34:25
阅读次数:
212
在表示重复的字符后面加问号,比如+?,*?,{2,3}?可以停止匹配的贪婪模式。 1 var pattern=/\w{2,3}/; 2 console.log("aaaa".match(pattern)[0]); 3 /*结果"aaa";贪婪模式下会尽可能多的匹配, 4 所以会匹配3个重复的字符 5...
分类:
Web程序 时间:
2014-08-26 08:32:35
阅读次数:
204
这两个组件比较交单,大家看下会使用就行了
XML文件配置
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match...
分类:
移动开发 时间:
2014-08-25 22:54:15
阅读次数:
306
题目链接Tatyana is a big sports fan and she likes volleyball a lot! She writes down the final scores of the game after it has ended in her notebook.If you...
分类:
其他好文 时间:
2014-08-25 20:42:04
阅读次数:
248
test test 返回 Boolean,查找对应的字符串中是否存在模式。var str = "1a1b1c";var reg = new RegExp("1.", "");alert(reg.test(str)); // trueexec exec 查找并返回当前的匹配结果,并以数组的形式返回。v...
分类:
Web程序 时间:
2014-08-25 19:12:14
阅读次数:
204
今天内容
1.正则表达式
2.数学函数
3.日期函数
4.错误处理
正则表达式:
1.模式修正符
2.五个常用函数
另外一个正则表达式的网站:http://www.jb51.net/tools/zhengze.html
正则表达式
1.原子
2.元子符
3.模式修正符
正则表达式函数
1.preg_match();
2.pr...
分类:
Web程序 时间:
2014-08-25 02:19:23
阅读次数:
257
通常情况下,我们判断一个字符串中是否存在某值常常会用string.contains,其实判断一个字符串中存在某值的方法有很多种,最常用的就是前述所说的string.contains,相对来说比较常用的还有string.IndexOf和Regex.Match。直接上代码,后面在说些什么吧,通常情况.....
分类:
其他好文 时间:
2014-08-23 15:20:10
阅读次数:
189