摘要: 英文版题目:https://pintia.cn/problem-sets/994805342720868352/problems/994805352925609984 中文版题目:https://pintia.cn/problem-sets/994805260223102976/problems/9 阅读全文
posted @ 2020-03-18 20:23 tangq123 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 大致题意就是给出一棵树的后序、中序遍历序列,然后建一棵树,,以蛇皮走位(奇层逆序,偶层顺序)输出其层序遍历序列。 1 #include<iostream> 2 #include<vector> 3 #include<queue> 4 #include<map> 5 using namespace s 阅读全文
posted @ 2020-03-18 19:09 tangq123 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 题目大意:如果一个连通图的所有顶点的度都是偶数,那么它是Eulerian,如果除了两个顶点的度是奇数其它的是偶数,那么它是semi-Eulerian,否则它是Non-Eulerian。 题目翻译: 如果图G中的一个路径包括a56爆大奖在线娱乐边恰好一次,则该路径称为欧拉路径。 如果一个回路是欧拉路径,则称为欧拉回路 阅读全文
posted @ 2020-03-18 17:56 tangq123 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 英文版题目:https://pintia.cn/problem-sets/994805342720868352/problems/994805350316752896 中文版题目:https://pintia.cn/problem-sets/994805260223102976/problems/9 阅读全文
posted @ 2020-03-18 16:56 tangq123 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 英文版题目:https://pintia.cn/problem-sets/994805342720868352/problems/994805350803292160 中文版题目:https://pintia.cn/problem-sets/994805260223102976/problems/9 阅读全文
posted @ 2020-03-18 16:46 tangq123 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 题目:https://pintia.cn/problem-sets/994805342720868352/problems/994805347523346432 a56爆大奖在线娱乐完全参考刘婼的思路和代码!!! 参考地址:https://www.liuchuo.net/archives/3850 a56爆大奖在线娱乐刚开始想的是用 阅读全文
posted @ 2020-03-18 12:27 tangq123 阅读(228) 评论(0) 推荐(0) 编辑