如图:
代码:
#include
#include
#include
#include
using namespace std;
char ch;
typedef struct BinNode
{
char data;
struct BinNode *lchild,*rchild;
}BinNode,*BinTree; //二叉树链式...
分类:
其他好文 时间:
2014-06-05 09:15:24
阅读次数:
203
不得不说块状数组好神奇的啊!这道题的标签可是splay的启发是合并(什么高大上的东西),竟然这么轻松的就解决了!var
x,y,i,j,tot,n,m,ch:longint; f,k,l,bl,go:array[0..200100] of longint;procedure
init; beg...
分类:
其他好文 时间:
2014-06-02 14:00:47
阅读次数:
260
type node1=record go,next:longint;end; node2=record
l,r,mx,sum:longint;end;var i,x,y,n,q,tmp,cnt,sz,code:longint; ch,st:string;
fa:a...
分类:
其他好文 时间:
2014-06-01 11:45:18
阅读次数:
374
字符串模板第一发,Tire(前缀树)。 1 const int maxnode = 4005*100;
2 const int sigma_size = 30; 3 4 class tire{ 5 public: 6 int
ch[maxnode][sigma_size]; 7 i...
分类:
其他好文 时间:
2014-05-31 07:38:45
阅读次数:
239
treap模版暂存。以后修改整理。#include#include#include
#includeusing namespace std;struct Node{ Node *ch[2];//左右子树 int
r;//优先级。数值越大,优先级越高 int v;//值 int...
分类:
其他好文 时间:
2014-05-30 01:45:16
阅读次数:
250
channel 不仅能够控制数据传输,还可以控制执行流。1.
关闭的channel从来都不会阻塞关闭的channel不能传数据但是可以接受数据,例子```package mainimport "fmt"func
main() { ch := make(chan bool, 2) ...
分类:
其他好文 时间:
2014-05-30 00:08:36
阅读次数:
250
Steps to Writing Well-—Reading NotesSteps to
Writing Well-—Reading NotesTable of Contents1. Chapter 1 Prewriting2. Chapter 2
The thesis statement3. Ch...
分类:
其他好文 时间:
2014-05-29 02:29:04
阅读次数:
428
一、寄存器的英文全称AH&AL=AX(accumulator):累加寄存器
BH&BL=BX(base):基址寄存器 CH&CL=CX(count):计数寄存器 DH&DL=DX(data):数据寄存器
SP(Stack Pointer):堆栈指针寄存器 BP(Base Pointer):基址指针寄...
分类:
其他好文 时间:
2014-05-28 19:09:52
阅读次数:
300
参考链接:VC++中CTime类Format参数详解CTime/COleDateTime::Format方法的使用http://stat.ethz.ch/R-manual/R-devel/library/base/html/strptime.htmlhttp://www.geezer.org/sw/...
分类:
编程语言 时间:
2014-05-28 13:47:28
阅读次数:
433
函数声明:void *memset(void *s, int ch, size_t
n);用途:为一段内存的每一个字节都赋予ch所代表的值,该值采用ASCII编码。所属函数库: 或者
参数:(1)s,开始内存的地址;(2)ch和n,从地址s开始,在之后的n字节长度内,把每一个字节的值都赋值为n。使用...
分类:
编程语言 时间:
2014-05-28 01:39:59
阅读次数:
335