![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
水水
文章平均质量分 50
tyg_zx
这个作者很懒,什么都没留下…
展开
-
uva11624
题意; 在一个迷宫中有好多处起火点,huo原创 2014-10-23 16:52:34 · 781 阅读 · 0 评论 -
HDU5100
// #include #include using namespace std; int main() { int case1; scanf("%d",&case1); while(case1--) { int n,k; scanf("%d%d",&n,&k); if(n<k) print转载 2014-11-09 16:34:42 · 490 阅读 · 0 评论 -
hdu1846
//巴s#include using namespace std; int main() { int case1; scanf("%d",&case1); while(case1--) { int n,m; scanf("%d%d",&n,&m); if(n%(m+1)==0) printf("second\n"); else printf("first\n")原创 2014-11-13 11:50:55 · 518 阅读 · 0 评论 -
HDU 5011
//和NIM游戏是一样的,不要被他能够分裂吓到; //你想一想根据SG函数的定义,原创 2014-11-17 18:50:33 · 809 阅读 · 0 评论 -
HDU1022
//第一眼一看应该就知道是栈; //记得前今天队里的某位xiao原创 2014-10-17 15:39:22 · 787 阅读 · 0 评论 -
题解HDU1026
//求迷宫最短路问题; //原创 2014-10-18 00:40:00 · 531 阅读 · 0 评论 -
二叉树的一个小性质
很明显,已知一棵二叉树的前序遍历和后序遍历,判断中序遍历时,其可能性只与没有兄弟节点的叶节点的位置有关。 假设没有兄弟节点的叶节点共有n个,则可能性边有2^n个。(就不证明了) 那么,如何计算n的值呢? 下面有一个性质: 一棵二叉树的前序遍历a1a2a3...ai和后序遍历b1b2b3...bi有一种关系:没有兄弟节点的叶节点的根 在a序列下标为i, 在b序列下标为j 则有 a[i转载 2015-09-19 00:47:06 · 392 阅读 · 0 评论