摘要: 链接:http://codeforces.com/problemset/problem/679/A 题目: This is an interactive problem. In the output section below you will see the information about f 阅读全文
posted @ 2019-05-05 20:40 周园顾 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 链接:https://codingcompetitions.withgoogle.com/codejam/round/00000000000516b9/0000000000134c90 题目: Problem After many sleepless nights, you have finally 阅读全文
posted @ 2019-05-05 16:08 周园顾 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.luogu.org/problemnew/show/P1086 题目: 题目描述 鲁宾逊先生有一只宠物猴,名叫多多。这天,他们两个正沿着乡间小路散步,突然发现路边的告示牌上贴着一张小小的纸条:“欢迎免费品尝我种的花生!――熊字”。 鲁宾逊先生和多多都很开心,因为花生正是 阅读全文
posted @ 2019-05-04 15:05 周园顾 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 2019.5.01 咕咕咕 集训室断电断网 给自己放假 2019.5.02 luogu P1031 均分纸牌 (模拟+贪心) luogu P1042 乒乓球 (模拟) luogu P1086 花生采摘 (模拟+优先队列) 2019.5.03 咕咕咕 2019.5.04 codejam round1c 阅读全文
posted @ 2019-05-02 13:58 周园顾 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4110 题目: BaoBao has just found two strings and in his left pocket, where indicates the 阅读全文
posted @ 2019-04-28 19:16 周园顾 阅读(1093) 评论(0) 推荐(1) 编辑
摘要: 链接:http://acm.hdu.edu.cn/showproblem.php?pid=6508 题目: Problem Description Shadowverse is a funny card game. One day you are playing a round of this ga 阅读全文
posted @ 2019-04-22 10:12 周园顾 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 链接:https://pintia.cn/problem-sets/994805046380707840/problems/994805065406070784 题目: 给定一棵二叉树的中序遍历和前序遍历,请你先将树做个镜面反转,再输出反转后的层序遍历的序列。所谓镜面反转,是指将所有非叶结点的左右孩 阅读全文
posted @ 2019-03-29 23:41 周园顾 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 链接:https://pintia.cn/problem-sets/994805046380707840/problems/994805070971912192 题目: 一棵二叉搜索树可被递归地定义为具有下列性质的二叉树:对于任一结点, 其左子树中所有结点的键值小于该结点的键值; 其右子树中所有结点 阅读全文
posted @ 2019-03-29 23:32 周园顾 阅读(1434) 评论(0) 推荐(0) 编辑
摘要: 链接:https://pintia.cn/problem-sets/994805046380707840/problems/994805069361299456 题目: 给定一棵二叉树的后序遍历和中序遍历,请你输出其层序遍历的序列。这里假设键值都是互不相等的正整数。 输入格式: 输入第一行给出一个正 阅读全文
posted @ 2019-03-29 14:15 周园顾 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 链接:https://pintia.cn/problem-sets/994805046380707840/problems/994805063963230208 题目: 战争中保持各个城市间的连通性非常重要。本题要求你编写一个报警程序,当失去一个城市导致国家被分裂为多个无法连通的区域时,就发出红色警 阅读全文
posted @ 2019-03-28 22:02 周园顾 阅读(571) 评论(0) 推荐(0) 编辑