T1023 选择排序--3行搞定 摘要:解题思路:注意事项:参考代码:s=list(map(int,input().split()))s.sort()list(map(print,s))…… 题解列表 2025年05月04日 0 点赞 0 评论 123 浏览 评分:0.0
无聊的星期六 摘要:参考代码:z=input() z=list(map(int,z.split())) z.sort() print('\n'.join(map(str,z)))…… 题解列表 2024年04月14日 1 点赞 0 评论 361 浏览 评分:10.0
1023: [编程入门]选择排序 摘要:解题思路:注意事项:参考代码:a = list(map(int, input().split())) for i in range(len(a)): temp = i for j…… 题解列表 2024年04月08日 1 点赞 0 评论 634 浏览 评分:0.0
小白随便写的,记录一下 摘要:```python def select_sort(li): n = len(li) for i in range(n): # 多一次循环 for j in …… 题解列表 2024年03月24日 0 点赞 0 评论 284 浏览 评分:0.0
python选择排序 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split()))a.sort()for i in a: print(i)…… 题解列表 2024年03月17日 0 点赞 0 评论 155 浏览 评分:0.0
python选择排序 摘要:解题思路:从第[0]开始作为最小值,将最小值与最小值后的每一位比较找出极小值,循环得出最小排序注意事项:参考代码:x = list(map(int,input().split()))t=0for i …… 题解列表 2024年02月03日 1 点赞 0 评论 419 浏览 评分:9.9
编写题解 1023: [编程入门]选择排序 摘要:解题思路:注意事项:参考代码:def selection_sort(nums): for i in range(len(nums)): # 外循环 依次取数组中的每一个元素进行比较 …… 题解列表 2023年12月13日 0 点赞 0 评论 296 浏览 评分:9.9
选择排序python 摘要:解题思路: 选择排序的时间复杂度是O(n^2),其中n是待排序元素的数量。这是因为选择排序的基本操作是交换和比较,而每次交换和比较都需要遍历整个数组,因此时间复杂度为O(n^2)题意直接…… 题解列表 2023年12月13日 0 点赞 0 评论 153 浏览 评分:0.0
[编程入门]选择排序 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split()))a=sorted(a)for i in a: print(i,end=" ")…… 题解列表 2023年06月09日 0 点赞 0 评论 166 浏览 评分:0.0
排序最简单代码Python 入门级别 摘要:解题思路:注意事项:参考代码:ls=list(map(int,input().split())) #将一串数处理后,放入列表ls.sort()for j in ls: print(j) …… 题解列表 2023年03月27日 0 点赞 0 评论 123 浏览 评分:0.0