编写题解 1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3]; int t; for(int i=0;i<3;i++){ s…… 题解列表 2022年03月09日 0 点赞 0 评论 111 浏览 评分:0.0
C语言,不用库函数,标注较为清晰,冒泡排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>//冒泡排序方法int main(){ int i,a[10]; for(i=0;i<3;i++)//现在数组里输入三个数 { sca…… 题解列表 2022年03月11日 0 点赞 0 评论 535 浏览 评分:0.0
编程我们是新手,对于重复的代码,建议复制粘贴再修改 摘要:解题思路:运用if注意事项:if后是否加大括号,注意好上下级关系参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",…… 题解列表 2022年03月14日 0 点赞 0 评论 312 浏览 评分:7.0
1043 三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d", &a, &b,&c); if(a>b) …… 题解列表 2022年03月23日 0 点赞 0 评论 248 浏览 评分:9.9
[编程入门]三个数字的排序(C++)冒泡排序思想 摘要:解题思路:运用冒泡排序思想对三个数字进行排序;把a,b,c看作一组有序序列;fun函数对两个数进行排序;使用三次fun函数便可完成三个数的排序注意事项:swap函数是C++自带的函数!fun函数的形参…… 题解列表 2022年03月25日 0 点赞 2 评论 972 浏览 评分:9.9
优质题解 三个数从小到大排序 摘要:解题思路1: 如果说你有必要打开题解来通关而不是交流讨论,那第一种方法很适合。它至少表明,实际上不打开题解,这道题有一个最基础的可以运行出来的思路:列出来。 三个数字六种排…… 题解列表 2022年04月26日 0 点赞 3 评论 4290 浏览 评分:8.8
利用C++ 集合set特性解题 摘要:``` #include #include #include using namespace std; int M,N; int a[3]; set T; int main(){ …… 题解列表 2022年04月27日 0 点赞 0 评论 269 浏览 评分:9.9
三个数字的排序(C++语言) 摘要:解题思路:输入a[1]至a[3],使用自带函数对输入数组进行排序注意事项:需要使用万能头文件参考代码:#include<bits/stdc++.h>//万能头文件using namespace std…… 题解列表 2022年04月27日 0 点赞 0 评论 314 浏览 评分:9.9
三个数字的排序 摘要:解题思路:利用数组+sort进行排序注意事项:注意数组的下标参考代码:#include<iostream>#include<fstream>#include<algorithm>using names…… 题解列表 2022年04月29日 0 点赞 0 评论 146 浏览 评分:0.0
[编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[15];int main(){ for(int i=0;i<3;i++)…… 题解列表 2022年05月03日 0 点赞 0 评论 116 浏览 评分:0.0