摘要: PAT题目链接:https://pintia.cn/problem-sets/994805342720868352/exam/problems/1478634991737962496 题解代码: #include<iostream> #include<vector> #include<string> 阅读全文
posted @ 2023-05-03 18:06 江韵阁 阅读(11) 评论(0) 推荐(0)
摘要: PAT题目链接:https://pintia.cn/problem-sets/994805342720868352/exam/problems/1478634991737962496 题解代码: #include<iostream> #include<vector> #include<string> 阅读全文
posted @ 2023-05-03 17:57 江韵阁 阅读(13) 评论(0) 推荐(0)
摘要: OJ题目链接:https://oj.haizeix.com/problem/285 如果要变成大顶堆,有一个小技巧就是只需要在插入的时候,对元素取相反的极性就可以了,拿出来用的时候再还原回去。 题解代码: #include<iostream> #include<set> using namespac 阅读全文
posted @ 2023-05-03 17:57 江韵阁 阅读(69) 评论(0) 推荐(0)
摘要: 题目链接:https://pintia.cn/problem-sets/994805342720868352/exam/problems/1478635126488367104 唉,今天的bug出在了下面这条语句。 if (tree[root_key].left * tree[root_key].r 阅读全文
posted @ 2023-05-03 17:35 江韵阁 阅读(47) 评论(0) 推荐(0)