创建树时,两个最小值谁下标小谁是左孩子,而不是比较它们权重 ````c#include#include#include#include//#definenodesize8//8//529781423311typedefstruct{chardate;intparent,lcld,rcld;intweight;}htNode, 题解列表 2023年11月01日 2 点赞 0 评论 1196 浏览 评分:0.0
简简单单就解决直插排序 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>using namespace std;#define MAXSIZE 1005typedef …… 题解列表 2023年11月01日 0 点赞 0 评论 864 浏览 评分:0.0
二级C语言-同因查找题解(c语言) 摘要:解题思路:在循环中使用if语句,如果条件成立则输出注意事项:条件例i%7==0 (== “等于“,别搞成一个了)参考代码:#include<stdio.h>int main(){ int n,i; n…… 题解列表 2023年11月01日 0 点赞 0 评论 504 浏览 评分:0.0
C++类的思想题解 摘要:解题思路:使用类的思想,其他的就不说了别的地方都有写。注意事项:参考代码:#include<iostream>using namespace std;class Student {private: s…… 题解列表 2023年11月01日 0 点赞 0 评论 558 浏览 评分:0.0
蓝桥杯算法训练-数据交换 参考代码:```c#includevoidswap(int*x,int*y){intt=*x;*x=*y;*y=t;}intmain(){intx,y;scanf("%d%d",&x,&y);swap(&x,&y);printf("%d%d",x,y);return0;}``` 题解列表 2023年10月31日 0 点赞 0 评论 512 浏览 评分:10.0
矩阵归零消减序列和(行啊,好久没见这么绕的题了,最考验循环的一集) 摘要:解题思路:注意事项:记住要得出行最小值时,行的变化为外循环,列的变化为内循环要得出列最小值时,列的变化为外循环,行的变化为内循环参考代码:#include<stdio.h> int main() …… 题解列表 2023年10月31日 1 点赞 2 评论 776 浏览 评分:9.9
这真的是太简单了,有手就行 摘要:解题思路:注意事项:(为了防止control+C,control+V仅供参考,建议在自己的编译器上,先编译运行)参考代码:#include "stdio.h"int main() { int n; i…… 题解列表 2023年10月31日 1 点赞 0 评论 421 浏览 评分:0.0
超级简洁版 摘要:参考代码:#include<iostream>#include<algorithm>using namespace std;const int N =310;double a[N];int main(…… 题解列表 2023年10月31日 0 点赞 0 评论 533 浏览 评分:9.9
本题的思路要清晰 摘要:解题思路:将两边的数字调换位置注意事项:循环次数为5次参考代码:#include<stdio.h>int main(){ int a[10],i,temp; for(i=0;i<10;…… 题解列表 2023年10月31日 0 点赞 0 评论 431 浏览 评分:0.0
C语言训练-阶乘和数* 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int Weishu(int n)//判断位数{ int i = 0; while (n …… 题解列表 2023年10月31日 0 点赞 0 评论 610 浏览 评分:10.0