c++简单应用二叉树的性质-完全二叉树的权值 摘要:二叉树的层数要注意一下,因为不一定是满的二叉树所以要区分当n是2的倍数与否的情况;从第一层到倒数第二层都可以直接一层一层来求和求最大值,但是最后一层不一定是满的,所以得记录一下到最后一层还剩下多少个元…… 题解列表 2022年03月12日 0 点赞 0 评论 480 浏览 评分:0.0
[编程入门]链表之节点删除(C语言)(详细注释)(简单易懂) 摘要:参考代码:#include <stdio.h> #include <stdlib.h> //热知识:stdlib库里面包含malloc函数 typedef struct Linklist …… 题解列表 2022年03月12日 0 点赞 0 评论 737 浏览 评分:0.0
蓝桥杯算法提高VIP-学霸的迷宫 思路很简单,注意细节 摘要:```cpp #include #include #include #include using namespace std; int n, m; char map[510][510];…… 题解列表 2022年03月12日 0 点赞 0 评论 633 浏览 评分:9.9
1771: [编程入门]链表之节点删除(c语言) 摘要:解题思路: 直接上代码,重要点已打注释注意事项:参考代码:#include<stdio.h> #include<stdlib.h> typedef struct student//建立学生结…… 题解列表 2022年03月13日 0 点赞 0 评论 745 浏览 评分:6.0
1557: 蓝桥杯算法提高VIP-聪明的美食家 摘要:解题思路:注意事项:第一次用的比较暴力的方法,会超时#include<bits/stdc++.h> using namespace std; long long int pre[1005]={0}…… 题解列表 2022年03月13日 0 点赞 0 评论 630 浏览 评分:0.0
2305: 蓝桥杯2019年第十届省赛真题-等差数列 摘要:每相邻的两项的差的最大公约数 == d参考代码:#include<bits/stdc++.h> using namespace std; int n; long long a[100005]; …… 题解列表 2022年03月13日 0 点赞 0 评论 531 浏览 评分:0.0
优质题解 异或数列(c++位运算) 摘要: ------------  ------------ ###### 思…… 题解列表 2022年03月13日 1 点赞 5 评论 3259 浏览 评分:9.8
优质题解 五大方法带你解决三个数最大值问题(附带任意个数最大值解决方案) 摘要:一、if嵌套语句 注意大于号和小于号。 if(表达式) 语句其语义是:如果表达式的值为真,则执行其后的语句,否则不执行该语句。 第二种形式为: if-elseif(表达式…… 题解列表 2022年03月13日 28 点赞 53 评论 31616 浏览 评分:10.0
题解 1093: 字符逆序 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char str[100]; gets(st…… 题解列表 2022年03月13日 0 点赞 0 评论 596 浏览 评分:0.0
仅用pow函数进行进制转换 摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;int main(){ int i, j = 0, n, a[10] = { 0 }; cin >…… 题解列表 2022年03月13日 0 点赞 0 评论 781 浏览 评分:9.9