利用递归算法求解猴子吃桃问题 摘要:# 利用递归算法求解猴子吃桃问题 ## 我的代码 ```python from functools import lru_cache @lru_cache(maxsize=1024) #…… 题解列表 2023年06月12日 0 点赞 0 评论 400 浏览 评分:0.0
自由下落的距离计算 摘要: ## 我的代码 ```python m,n=map(int,input().strip().split()) a=0 b=m #这里将b的初值设为m,因为落下距离容易被忽略,也可以不写…… 题解列表 2023年06月11日 0 点赞 0 评论 367 浏览 评分:0.0
利用递归函数求斐波那契数列 摘要: ##我的代码 ```python def func(n): if n==1: return 1 if n==2: return 2 …… 题解列表 2023年06月11日 0 点赞 0 评论 319 浏览 评分:0.0
求水仙花数 摘要:预览,如果感觉基本编辑界面太小太窄也可以使用全屏。** ##### 插入代码 x=y=z=d=0 for i in range(100,1000): x=i//100 y…… 题解列表 2023年06月11日 0 点赞 0 评论 324 浏览 评分:0.0
优质题解 利用三个for循环实现题目要求 摘要:# MarkDown编辑器基本使用说明 **如果这是您第一次使用MarkDown编辑器,建议先阅读这篇文章了解一下Markdown的基本使用方法。** ## 实时预览、全屏显示 ![…… 题解列表 2023年06月11日 0 点赞 0 评论 876 浏览 评分:5.3
2832: 第n小的质数 摘要:解题思路:注意事项:参考代码:def isPrime(su): if su==2: return true if su%2==0: return False …… 题解列表 2023年06月11日 0 点赞 0 评论 352 浏览 评分:0.0
编写题解 2824: 求出e的值 摘要:解题思路:注意事项:参考代码:n=int(input())a=1b=1for i in range(1,n+1): a=a*i c=1/a b=b+c e=b print(f'{e:…… 题解列表 2023年06月11日 0 点赞 0 评论 278 浏览 评分:0.0
优质题解 找到简单规律,一切迎刃而解,--混乱的数组-python题解 摘要:解题思路:借鉴了大佬的思想,在此表示崇敬和感谢。https://blog.dotcpp.com/a/95964 站在大佬的肩膀上,进一步发现了更容易编程的规律:每个x对应的数组由三个序列构成。整体思想…… 题解列表 2023年06月11日 1 点赞 0 评论 823 浏览 评分:7.3
输出最高分数的学生姓名 摘要:解题思路:注意事项:参考代码:n=int(input())a=[]for i in range(n): i=tuple(input().split()) a.append(i)a=sort…… 题解列表 2023年06月10日 0 点赞 0 评论 388 浏览 评分:0.0
谁考了第k名 摘要:解题思路:注意事项:参考代码:n,k=map(int,input().split())s=[]for i in range(n): a=tuple(map(eval,input().split(…… 题解列表 2023年06月10日 0 点赞 0 评论 323 浏览 评分:0.0