这是一道很常见的题,看题的时候看漏了root to
leaf的leaf,以为只要从root开始就可以了,太不仔细了,sigh~ 其实类似的题目在Career
Cup的4.9,那个题是任意路径,不必从root到leaf,要求更高。一直以来我都有这样的疑问,迭代的变量(如下例中的path、total)如...
分类:
其他好文 时间:
2014-05-26 12:09:21
阅读次数:
329
MainRecv.cpp#include #include #include #pragma
comment(lib,"ws2_32.lib")#define RECV_IP "127.0.0.1"#define RECV_PORT
8899#define LEN_RECV_BUF 2048int ...
分类:
其他好文 时间:
2014-05-26 12:07:41
阅读次数:
276
http://www.iwangzheng.com/[root@a02]$show
dbs;changhong_tv_cms 0.078GB[root@a02]$ mongodump -d changhong_tv_cms
-o/temp/db_mongo.20140521.mongo/worksp...
分类:
数据库 时间:
2014-05-26 10:30:39
阅读次数:
407
linux中用shell获取昨天、明天或多天前的日期:在Linux中对man date -d
参数说的比较模糊,以下举例进一步说明:# -d, --date=STRING display time described by STRING, not
`now’[root@Gman root]# dat...
分类:
系统相关 时间:
2014-05-26 09:42:15
阅读次数:
320
LTMP 指的 linux + tengine + mysql + php。我下载的 CentOS
6.5 32位, 自带了 apache、mysql, 我得卸载掉。1.切换到root用户[admin@localhost ~]$ su -
root[root@localhost /]# find /...
分类:
其他好文 时间:
2014-05-26 09:06:11
阅读次数:
242
在Windows系统中查看内存的使用情况很简单,想必大家都已经耳熟能详了,那么在linux系统如何查看内存使用情况呢?下面和大家分享在Linux
下查看内存使用情况的free命令: [root@scs-2 tmp]# free total used free shared buffers c...
分类:
系统相关 时间:
2014-05-26 09:04:17
阅读次数:
352
线段树的单点更新,区域查询操作。
#include
#include
#include
#include
#include
using namespace std;
#define lmin 1
#define rmax n
#define lson l,(l+r)/2,rt<<1
#define rson (l+r)/2+1,r,rt<<1|1
#define root lmin,rmax,1...
分类:
其他好文 时间:
2014-05-26 05:25:50
阅读次数:
187
编译器错误消息:CS0016:未能写入输出文件“c:\Windows\Microsoft.NET\Framework\v2.0.50727
\TemporaryASP.NETFiles\root\9b70b3a1\3eb1115f\App_Code.aez6e3ev.dll”--
“拒绝访问。”产生...
分类:
其他好文 时间:
2014-05-24 10:25:53
阅读次数:
217
命令行下具体用法如下: mysqldump -u用戶名 -p密码 -d 數據库名 表名
脚本名; 1、导出數據库為dbname的表结构(其中用戶名為root,密码為dbpasswd,生成的脚本名為db.sql) mysqldump -uroot
-pdbpasswd -d dbname >db......
分类:
数据库 时间:
2014-05-24 10:17:45
阅读次数:
299
AC自动机简介:KMP是用于解决单模式串匹配问题,
AC自动机用于解决多模式串匹配问题。精华:设这个节点上的字母为C,沿着他父亲的失败指针走,直到走到一个节点,他的儿子中也有字母为C的节点。然后把当前节点的失败指针指向那个字目也为C的儿子。如果一直走到了root都没找到,那就把失败指针指向root。...
分类:
其他好文 时间:
2014-05-24 09:36:42
阅读次数:
318