摘要:
题目链接:http://poj.org/problem?id=1240好久之前自己写的,今天拿出来看看,越看越喜欢。题目意思,已知前序遍历跟后序遍历,求树共有多少种形态。前一篇随笔中提到了一点。View Code #include <iostream>#include <stdio.h>#include <string.h>#include <stdlib.h>using namespace std;const int maxn=27;char s1[maxn],s2[maxn];int m,ans,pre;int zuhe(int cnt){ 阅读全文
posted @ 2012-10-01 14:31
Raining Days
阅读(233)
评论(0)
推荐(0)
浙公网安备 33010602011771号