1738: 排序 -插入排序 摘要:注意事项: 注意输入输出参考代码:# 插入排序_升序 def insertion_sort(nums): # 遍历数组 for i in range(1, len(nums)):…… 题解列表 2024年10月27日 0 点赞 0 评论 477 浏览 评分:0.0
1738: 排序 -选择排序 摘要:注意事项:注意输入输出格式参考代码:def selection_sort(nums): length = len(nums) for i in range(length): …… 题解列表 2024年10月27日 0 点赞 0 评论 399 浏览 评分:0.0
编写题解 1317: 最长公共子序列lcs 摘要:解题思路:注意事项:参考代码:a,b = input().strip().split()n = len(a)m = len(b)d = [[0]*(m+1) for _ in range(n+1)]f…… 题解列表 2024年10月26日 0 点赞 0 评论 400 浏览 评分:0.0
判断是否为两位数之入门 摘要:解题思路:注意事项:参考代码:while True: try: n=int(input()) print("1") if 0.1<= n/100 <1 else pr…… 题解列表 2024年10月26日 0 点赞 0 评论 692 浏览 评分:9.9
数字的处理与判断python解 摘要:sd = input() print(len(sd)) print(' '.join(sd), end='') print("\n"+sd[::-1])注意事项:…… 题解列表 2024年10月26日 1 点赞 0 评论 452 浏览 评分:9.9
1316: 最长不下降子序列的长度 摘要:解题思路:注意事项:参考代码:n = int(input())l = list(map(int,input().split()))memo = {}def find(i): if i in me…… 题解列表 2024年10月25日 0 点赞 0 评论 292 浏览 评分:0.0
Python "结构体"的多参数排序 摘要: from functools import cmp_to_key def cmp(a,b): if a[3] 5: for j in range(…… 题解列表 2024年10月25日 0 点赞 0 评论 288 浏览 评分:9.9
用啥写都一样 摘要:解题思路:e......注意事项:无参考代码:print(''' ******** ************ …… 题解列表 2024年10月25日 1 点赞 0 评论 404 浏览 评分:0.0
1137: C语言训练-求函数值(python) 摘要:Python的默认最大递归深度(通常为1000)。当输入的x值较大时,函数f(x)会进行大量的递归调用,导致递归深度超过限制。 **解决方法** - 增加递归深度限制:可以通过sys.setr…… 题解列表 2024年10月24日 0 点赞 0 评论 307 浏览 评分:9.9
1067: 二级C语言-分段函数(python) 摘要:[1067:二级C语言-分段函数](https://www.dotcpp.com/oj/problem1067.html?sid=18062507&lang=6#editor) ~~~pyth…… 题解列表 2024年10月24日 0 点赞 0 评论 294 浏览 评分:0.0