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