摘要:
题目链接:https://pintia.cn/problem-sets/994805342720868352/exam/problems/1621700048826490880 题解代码: #include<iostream> #include<set> #include<vector> using 阅读全文
posted @ 2023-05-07 19:24
江韵阁
阅读(27)
评论(0)
推荐(0)
摘要:
题目链接:https://pintia.cn/problem-sets/994805342720868352/exam/problems/1621700026718310400 题解代码: #include<iostream> #include<string> #include<cmath> usi 阅读全文
posted @ 2023-05-07 18:22
江韵阁
阅读(21)
评论(0)
推荐(0)
摘要:
PAT链接:https://pintia.cn/problem-sets/994805342720868352/exam/problems/1478636026017230848 **解题思路:**给定中序遍历,你就能知道,元素之间是左右子树的关系。对于每一层递归中的根节点来说,左孩子就是左边序列里 阅读全文
posted @ 2023-05-07 18:07
江韵阁
阅读(30)
评论(0)
推荐(0)
摘要:
题目链接:https://pintia.cn/problem-sets/994805342720868352/exam/problems/1478635919459287040 题解代码: #include<iostream> #include<vector> using namespace std 阅读全文
posted @ 2023-05-07 17:25
江韵阁
阅读(12)
评论(0)
推荐(0)
摘要:
PAT题目链接:https://pintia.cn/problem-sets/994805342720868352/exam/problems/1478635841315209216 解题思路:这题用两个栈倒腾倒腾就可以了。 题解代码: #include<iostream> #include<sta 阅读全文
posted @ 2023-05-07 16:35
江韵阁
阅读(15)
评论(0)
推荐(0)
摘要:
PAT题目链接:https://pintia.cn/problem-sets/994805342720868352/exam/problems/1478635670373253120 这题踩了太多坑,本来没什么内容,硬是断断续续查了三天的bug: 第一天: 循环的时候内部判断逻辑不要写在for循环里 阅读全文
posted @ 2023-05-07 14:17
江韵阁
阅读(115)
评论(0)
推荐(0)

浙公网安备 33010602011771号