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
编写题解 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
1043: [编程入门]三个数字的排序 摘要:解题思路:因为数字很少(3个),所以写了一个冒泡排序,接收数组的指针和数组长度,给数组排序,之后正常打印数组即可。注意事项:冒泡排序的原理是在每一轮循环中,对数组的成员两两比较,这样能保证每一轮循环都…… 题解列表 2022年03月05日 0 点赞 0 评论 230 浏览 评分:0.0
[编程入门]三个数字的排序 摘要:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a<b&&b<c)printf…… 题解列表 2022年03月04日 0 点赞 0 评论 159 浏览 评分:0.0
冒泡排序哦 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void b_sort(int a[]){ int i,j,t; for(i=0;i<2;i++){ for(j=0…… 题解列表 2022年03月02日 0 点赞 0 评论 156 浏览 评分:0.0
[编程入门]三个数字的排序 摘要:解题思路:冒泡排序注意事项:参考代码:#include<stdio.h>#include <string.h>int main(){ int temp=0,flag=0,i,j; int …… 题解列表 2022年02月28日 0 点赞 0 评论 101 浏览 评分:0.0
编写题解 1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int x,y,z,max,min,mid; scanf("%d %d %d",&x,&y,&z); min=…… 题解列表 2022年02月13日 0 点赞 0 评论 242 浏览 评分:9.9
编写题解 1043: [编程入门]三个数字的排序 摘要:冒泡排序import java.util.Scanner; public class Main { public static void main(String[] args) { S…… 题解列表 2022年02月06日 0 点赞 0 评论 410 浏览 评分:9.9
【露离】一行流,[编程入门]三个数字的排序 摘要:解题思路:注意事项:join要输入字符型,所以用%s输出。参考代码:print(' '.join('%s'%i for i in sorted(list(map(int…… 题解列表 2022年02月05日 0 点赞 0 评论 266 浏览 评分:9.9
[编程入门]三个数字的排序-题解(python代码) 摘要:解题思路: 利用sort()函数排序后for循环输出。注意事项:参考代码:lst = list(map(int, input().split()))lst.sort()for i in lst:…… 题解列表 2022年01月25日 0 点赞 0 评论 171 浏览 评分:0.0