摘要: https://www.luogu.org/problemnew/show/P1305题目描述输入一串二叉树,用遍历前序打出。输入输出格式输入格式: 第一行为二叉树的节点数n。(n≤26)后面n行,每一个字母为节... 阅读全文
posted @ 2019-07-21 17:54 宿星 阅读(106) 评论(0) 推荐(0) 编辑
摘要: https://www.luogu.org/problemnew/show/P1030题目描述给出一棵二叉树的中序与后序排列。求出它的先序排列。(约定树结点用不同的大写字母表示,长度≤8)。输入输出格式输入格式:... 阅读全文
posted @ 2019-07-21 16:54 宿星 阅读(124) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=3041DescriptionBessie wants to navigate her spaceship through a dangerous astero... 阅读全文
posted @ 2019-07-21 11:52 宿星 阅读(87) 评论(0) 推荐(0) 编辑
摘要: https://www.luogu.org/problemnew/show/P2774题目描述在一个有 m*n 个方格的棋盘中,每个方格中有一个正整数。现要从方格中取数,使任意 2 个数所在方格没有公共边,且取出... 阅读全文
posted @ 2019-07-21 10:12 宿星 阅读(145) 评论(0) 推荐(0) 编辑