蓝桥杯算法训练-数据交换 摘要:参考代码: ```c #include void swap(int *x,int *y) { int t=*x; *x=*y; *y=t; } int mai…… 题解列表 2023年10月31日 0 点赞 0 评论 320 浏览 评分:10.0
C++类的思想题解 摘要:解题思路:使用类的思想,其他的就不说了别的地方都有写。注意事项:参考代码:#include<iostream>using namespace std;class Student {private: s…… 题解列表 2023年11月01日 0 点赞 0 评论 332 浏览 评分:0.0
二级C语言-同因查找题解(c语言) 摘要:解题思路:在循环中使用if语句,如果条件成立则输出注意事项:条件例i%7==0 (== “等于“,别搞成一个了)参考代码:#include<stdio.h>int main(){ int n,i; n…… 题解列表 2023年11月01日 0 点赞 0 评论 310 浏览 评分:0.0
简简单单就解决直插排序 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>using namespace std;#define MAXSIZE 1005typedef …… 题解列表 2023年11月01日 0 点赞 0 评论 640 浏览 评分:0.0
创建树时,两个最小值谁下标小谁是左孩子,而不是比较它们权重 摘要:````c #include #include #include #include //#define nodesize 8 //8 //5 29 7 8 14 23 3 11 …… 题解列表 2023年11月01日 2 点赞 0 评论 899 浏览 评分:0.0
二级C语言-等差数列-题解(C语言代码)/超级简单 摘要:解题思路: 利用等差数列求和公式:sum=(2*n+(x-1)*y)*(x/2) #x为首项,n为项数,y为公差注意事项: 项数要定义为浮点数参考代码: #includ…… 题解列表 2023年11月01日 0 点赞 0 评论 377 浏览 评分:9.9
优质题解 保姆级教程(冒泡排序) 摘要:解题思路:冒泡排序;1.写好交换函数和判断函数 2.在main函数中用new获取未知数组的大小并根据输入的数创建数组 …… 题解列表 2023年11月01日 0 点赞 0 评论 1833 浏览 评分:3.8
2997题解(加经验) 摘要:解题思路:6注意事项:6参考代码:public class Main{ public static void main(String[] args) { System.out.pr…… 题解列表 2023年11月01日 0 点赞 0 评论 429 浏览 评分:0.0
2766题解)(加精验) 摘要:解题思路:8注意事项:k参考代码:public class Main { public static void main(String[] args) { Scanner read…… 题解列表 2023年11月01日 0 点赞 0 评论 448 浏览 评分:0.0
1267题解(刷几眼) 摘要:解题思路:1注意事项:1参考代码:int a,b ; cin>>a>>b ; cout<<a+b<<endl;…… 题解列表 2023年11月01日 0 点赞 0 评论 416 浏览 评分:6.0