小白随便写的,记录一下
摘要:```python
# 利用map函数和list把输入转为int型列表
li = list(map(int, input().split()))
li.sort()
# 利用内置函数进行排序……
C语言程序设计教程(第三版)课后习题10.1 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int arr[3]; for(int i=0; i<3; i++) { scanf("%d",&arr[i]……
[编程入门]三个数字的排序-题解(Java代码)
摘要:解题思路:注意事项:参考代码:import java.text.DecimalFormat;
import java.util.Arrays;
import java.util.Scanner;
……
[编程入门]三个数字的排序(三目运算符解决)
摘要:解题思路:注意事项:参考代码:int main(){ int a, b, c, d, e, f, g, h; scanf("%d%d%d", &a, &b, &c); d = a > b ? a……
[编程入门]三个数字的排序-题解(C语言代码)
摘要:解题思路:把每种可能都列举出来,毕竟数比较少注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,d,e,f; scanf("%d%d%d",&a,……
[编程入门]三个数字的排序--朴素方法
摘要:解题思路:利用列表接收数据,再使用内置函数sort()排序,最后输出注意事项:‘一排输出’参考代码:m=list(map(int,input().split()))m.sort()for n in m……
三个数字的排序-冒泡/选择排序法
摘要:解题思路:冒泡法与选择法排序注意事项:参考代码:#include <stdio.h>int main(){ int i,j,t,a[3]; //定义变量及数组为基本整型 //prin……
题解 1043: [编程入门]三个数字的排序
摘要:解题思路:注意事项:用&&参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; ……