/** * sql模糊查询特殊字符(\,%和_)处理 * * @param string $str * @return string */ public static function like_search_specialchars($str){ return str_rep...
分类:
数据库 时间:
2014-09-01 10:41:23
阅读次数:
261
http://poj.org/problem?id=3070根据本题算矩阵,用快速幂即可。裸题#include #include #include #include #include #include using namespace std;#define rep(i, n) for(int i=0...
分类:
其他好文 时间:
2014-08-30 09:56:49
阅读次数:
204
Description
When a radio station is broadcasting over a very large area, repeaters are used to retransmit the signal so that every receiver has a strong signal. However, the channels used by each rep...
分类:
其他好文 时间:
2014-08-28 16:15:57
阅读次数:
163
http://poj.org/problem?id=1062此题一开始果断想到暴力。。但是n#include #include #include #include #include using namespace std;#define rep(i, n) for(int i=0; i=(n);--...
分类:
其他好文 时间:
2014-08-27 10:44:27
阅读次数:
281
这题我一开始想到的是状压,看到n#include #include #include #include #include using namespace std;#define rep(i, n) for(int i=0; i=(n);--i)#define for4(i,a,n) for(int ...
分类:
其他好文 时间:
2014-08-24 17:55:32
阅读次数:
199
需要js插件:
jquery
jQueryRotate.2.2.js
jquery.easing.min.js
前端显示代码:
幸运大转盘
body,div,img {margin:0; padding:0; border:0 none;}
#bg {background:url(img/bodybg.jpg) rep...
分类:
微信 时间:
2014-08-21 19:25:44
阅读次数:
477
拿CTSC的原题出NOIP模拟题真的好吗?其实挺水的,但是某人报复社会的题面让人望而却步。。。记忆化搜索,刘老师黑书上说的很详细了。可以在wikioi上提交。#include #define rep(_i, _j) for(int _i = 1; _i <= _j; ++_i)const int i...
分类:
其他好文 时间:
2014-08-21 06:19:33
阅读次数:
343
/// /// 过滤SQL非法字符串 /// /// /// public static string Filter(string value) { if (string.IsNullOrEmpty(value)) return string.Empty; value = Regex.Rep...
分类:
数据库 时间:
2014-08-14 00:56:27
阅读次数:
278
Overflow
Write a program that reads an expression consisting of two non-negative integer and an operator. Determine if either integer or the result of the expression is too large to be rep...
分类:
其他好文 时间:
2014-08-09 21:35:29
阅读次数:
321
环境VMWare Player 5.0.2,Ubuntu 13.10VMWare共有3种网络连接模式,分别是: 1. bridged(桥接模式):虚拟机将直接连接到物理局域网,使自身独立于宿主机外,从局域网路由器获取IP。这种方式虚拟OS可以和局域网中其他终端实现互访。桥接模式有一个子选项“Rep....
分类:
其他好文 时间:
2014-08-09 21:16:39
阅读次数:
364