首先log4js-node将输出的log分为六个的level,每个level的含义从字面就可以看出, 对于不同的level,log输出到终端时会使用不同的颜色(trace: 蓝色,debug: 青色, info:绿色,warn:黄色,error:红色, fatal:粉色)。终端是log4js-nod...
分类:
Web程序 时间:
2015-08-07 17:54:43
阅读次数:
249
求每个集合是其他多少个集合的真子集树状数组 + 离散化 依据左端点将线段变成点,单点更新,求区间和。#include #include #include #include using namespace std;struct node{ int l,r; int index;}nod[1...
分类:
编程语言 时间:
2015-08-06 12:44:10
阅读次数:
107
当我们使用ccap 生成验证码时,需要node-gyp构建build,但是c的编译环境是在python,vc。 node-gyp包 https://github.com/TooTallNate/node-gyp#installation 在使用的时候Windows系统满足以下两个条件(所以玩nod....
题目链接:http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1189
题目思路:
1/n! = 1/x +1/y==> n! * (x + y) = x * y(右边通分,然后转化)==> n!^2 = (x - n!)*(y - n!)(左右两边加上n方)==> a = b * c ,a = n!^2 ,b...
分类:
其他好文 时间:
2015-08-01 13:03:05
阅读次数:
114
和I相比有了单点更新,所以不能只记录一个前缀和,而是要在线段树上多维护一个sum,表示这个结点的区间和,然后其他的就和I一样了。#include #include #include using namespace std;const int N = 50001;int a[N];struct Nod...
分类:
其他好文 时间:
2015-07-31 08:58:07
阅读次数:
100
当我向人们介绍Node.js的时候,一般会有两种反应:多数立刻表示“哦,这样啊”,另外的则会感到困惑。
如果你是第二种的话,我会试着这样解释node:
这是一个命令行工具。你可以下载一个tar包,然后编译安装。在terminal中输入“node my_app.js”就可以运行起来你的javascript代码。JS都是在V8引擎(这也是Google Chrome这么快的原因)中运行的。Nod...
分类:
Web程序 时间:
2015-07-29 12:17:42
阅读次数:
127
头指针存放链表元素数量,头节点开始存放数据,尾节点指向NULL list.h#ifndef _LIST_H#define _LIST_H#include #include #define DEBUG 0typedef struct node{ int val; struct nod...
分类:
其他好文 时间:
2015-07-18 12:16:47
阅读次数:
140
1 package iYou.neugle.list; 2 3 public class MyChainList { 4 // 向链表尾部添加元素 5 public Node AddEnd(Node head, T data) { 6 Node nod...
分类:
编程语言 时间:
2015-07-10 12:56:47
阅读次数:
217
题目链接 题目要求: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows:The left subtree of a nod...
分类:
其他好文 时间:
2015-07-08 20:46:15
阅读次数:
134
http://acm.hdu.edu.cn/showproblem.php?pid=2037(简单贪心-----活动安排)#include#includeusing namespace std;struct Node{ int l, r;}a[105];bool Cmp(Node x, Nod...
分类:
其他好文 时间:
2015-07-08 00:09:27
阅读次数:
156