07 2017 档案

摘要:重建二叉树 重建二叉树 给定一棵二叉树的前序遍历和中序遍历的结果,求其后序遍历。 输入输入可能有多组,以EOF结束。每组输入包含两个字符串,分别为树的前序遍历和中序遍历。每个字符串中只包含大写字母且互不重复。输出对于每组输入,用一行来输出它后序遍历结果。样例输入 样例输出 阅读全文
posted @ 2017-07-26 21:03 Peper 阅读(1006) 评论(0) 推荐(0)
摘要:MPI Maelstrom MPI Maelstrom 总时间限制: 1000ms 内存限制: 65536kB描述BIT has recently taken delivery of their new supercomputer, a 32 processor Apollo Odyssey dis 阅读全文
posted @ 2017-07-25 23:38 Peper 阅读(448) 评论(0) 推荐(1)
摘要:Fiber Communications Fiber Communications 总时间限制: 1000ms 内存限制: 65536kB描述Farmer John wants to connect his N (1 <= N <= 1,000) barns (numbered 1..N) with 阅读全文
posted @ 2017-07-24 20:53 Peper 阅读(350) 评论(0) 推荐(0)