尝试用链表的形式做这道二叉树题目 摘要:解题思路:构造一个二叉链表,然后顺序输入,相当于完全二叉树,再根据想要获取的m来遍历整个二叉树从而找到m值,并返回该结点,同理,遍历该返回结点获取孩子个数。注意事项: 最后显示内存超限,但对于那些想…… 题解列表 2023年01月08日 0 点赞 1 评论 322 浏览 评分:9.9
蓝桥杯基础练习VIP-回形取数(Python语言全模拟) 摘要:参考代码:def opt(i): global x,y,lst,step #这里需要注意一下,当到达每行或者每列的边界时,由于主程序中循环的边界问题未能将边界元素添加进去,所以放在…… 题解列表 2023年01月08日 0 点赞 0 评论 267 浏览 评分:0.0
[编程入门]结构体之成绩统计2(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct students{ char snu[20],name[20]; int a,b,c;};int main(){ str…… 题解列表 2023年01月08日 0 点赞 0 评论 234 浏览 评分:9.9
1149一行解(Python) 摘要:解题思路:筛选奇数,合并求和注意事项:均采用内置函数,提升运行效率注意fliter函数在Python2和Python3返回值类型的差异学会匿名函数的表达方式参考代码:print(sum(list(fi…… 题解列表 2023年01月08日 0 点赞 1 评论 335 浏览 评分:9.9
画矩形(但不一定是用@画=_=||) 摘要:解题思路: 用脚趾头想的,不信请看我的优质答案=_=||注意事项: 这题目很娘贼,他直接用@给你画了一个矩形,搞得你打印时直接就想着输出@,这里的思考两秒钟=_=参考代码:…… 题解列表 2023年01月08日 0 点赞 0 评论 532 浏览 评分:9.9
蓝桥杯算法提高VIP-文本加密 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char a[100]; get…… 题解列表 2023年01月08日 0 点赞 0 评论 187 浏览 评分:0.0
3017: 最小n值 摘要:```cpp #include using namespace std; int main() { double sum=0; int n=1,m; cin>>m…… 题解列表 2023年01月08日 0 点赞 0 评论 404 浏览 评分:9.9
3016: 第几项 摘要:```cpp #include using namespace std; int main() { int i,m,n=0; cin>>m; for(i=1;n…… 题解列表 2023年01月08日 0 点赞 0 评论 265 浏览 评分:9.9
3015: 幂的末尾 摘要:```cpp #include #include using namespace std; int main() { long long n,x,k; cin>>n>>x…… 题解列表 2023年01月08日 0 点赞 0 评论 527 浏览 评分:9.9
3014: 计算星期几 摘要:```cpp #include using namespace std; int main() { int a,b,mod=7,z=1; string str[7]={"S…… 题解列表 2023年01月08日 0 点赞 0 评论 417 浏览 评分:9.9