2.2.7 deep-reverse(define (next x) (cond ((not (pair? x)) x) ((pair? (car x)) (cons (deep-reverse (car x)) (next (cdr x)))) (else x)))(define ...
分类:
其他好文 时间:
2015-11-29 16:30:33
阅读次数:
170
01.#include "stdafx.h" 02.#include 03.#include 04. 05.int _tmain(int argc, _TCHAR* argv[]) 06.{ 07. /** 08. * map中的每个元素都是一个pair类型 09...
分类:
编程语言 时间:
2015-11-27 19:45:29
阅读次数:
218
#include"cstdio"#include"queue"#include"cstring"using namespace std;const int MAXN=205;typedef pair P;int N,A,B;int K[MAXN];int vis[MAXN];int bfs(){ ....
分类:
其他好文 时间:
2015-11-27 13:01:19
阅读次数:
139
Some platforms provide a pair of instructions that work in concert to help build critical sections.On the MIPS architecture, for example, the load-lin...
分类:
其他好文 时间:
2015-11-27 06:42:50
阅读次数:
239
类模板:template struct pair参数:T1是第一个值的数据类型,T2是第二个值的数据类型。功能:pair将一对值组合成一个值,这一对值可以具有不同的数据类型(T1和T2),两个值可以分别用pair的两个公有函数first和second访问。具体用法:1.定义(构造):1 p...
分类:
编程语言 时间:
2015-11-25 21:47:18
阅读次数:
130
stl_config.h defalloc.h stl_alloc.h memory.cpp stl_construct.h stl_uninitialized.h stl_iterator.h type_traits.h stl_vector.h stl_pair.h stl_list.h stl...
分类:
编程语言 时间:
2015-11-23 13:15:24
阅读次数:
172
XOR -> 0 is the key (make it even pair): http://www.cnblogs.com/lautsie/p/3908006.htmlSomething to learn about basic Game Theory: http://www.cdf.toron...
分类:
其他好文 时间:
2015-11-22 12:35:28
阅读次数:
132
k叉哈夫曼树,美极了,注意补齐(置0#include#include#includeusing namespace std;typedef long long i64;typedef pairpii;#define mp make_pair#define fir first#define sec s...
分类:
其他好文 时间:
2015-11-20 19:05:19
阅读次数:
171
一、泛型类和泛型方法public class Pair{...}public static T getMiddle(T[] a){...}public static M, V myCompate(M am,V av){...}public static getMiddle(T[] a) 增加限...
分类:
编程语言 时间:
2015-11-20 01:52:48
阅读次数:
187
1. ssh客户端生成key 1 $ ssh-keygen -t rsa -b 4096 2 Generating public/private rsa key pair. 3 Enter file in which to save the key (/Users/(username)/.ssh/i...
分类:
编程语言 时间:
2015-11-18 09:15:18
阅读次数:
628