# 月度存档: 5月 2010

[……]

Continue

## FOJ 1906解题报告

### Problem Description

There is a sequence that only consists of characters ‘/’ and ‘’. You should calculate the number of down sequences and up sequences respectively in the given sequence.
A down sequence is defined as follows:
1. “/” is a down sequence.
2. If S is a down sequence, then “S/” is also a down sequence.
3. Any other sequences are not a down sequences.[……]

Continue

## HDU 3351解题报告

### Problem Description

I’m out of stories. For years I’ve been writing stories, some rather silly, just to make simple problems look difficult and complex problems look easy. But, alas, not for this one.
You’re given a non empty string made in its entirety from opening and closing braces. Your task is to find the minimum number of “operations” needed to make the string stable. The definition for being stable is as follows:
1. An empty string is stable.
2. If S is stable, then {S} is also stable.
3. If S and T are both stable, then ST (the concatenation of the two) is also stable.[……]

Continue

## 快速排序(1)

(顺序排列)步骤为：

1. 在数列中挑出一个元素作为”基准”(pivot)。
2. 将比基准小的移到基准前面，比基准大的移到基准后面(相同的可以不必理会)。
3. 递归(recursive)地对两个子序列排序。

[……]

Continue

[……]

Continue

## 搭建ＧＣＣ编译环境

MinGW:是GCC编译器的一个windows移植版本，也是类Unix操作系统下编写C/C++程序的首选。对于标准化方面一直做的不错.

VIM:一个在类Unix系统下发展起来的全屏编辑器，它的前生就是大名鼎鼎的VI,当然现在也有windows版本。

1,安装MinGW编译器

[……]

Continue

## 将VIM作为简易IDE

1.简介

ed编辑器是Unix上最古老的编辑器，最初由Unix之父Ken Thompson所编写，并应用了正则表达式。而VIM的前身VI正是基于ed的拓展ex上。

2.安装

Runtime files               运行库
GUI executable            界面文件
PC translations            语言文件


2.配置

[……]

Continue