自己调用自己(Python) 摘要:def panduan(n): if n==3 or n==2: return 1 elif n==1: return 0 else: wh…… 题解列表 2021年04月14日 0 点赞 0 评论 589 浏览 评分:0.0
蓝桥杯基础练习VIP-回形取数-python 摘要:解题思路:注意事项:参考代码:n,m = map(int,input().split()) ls = [] for i in range(n): s = input().split() …… 题解列表 2021年04月14日 0 点赞 0 评论 616 浏览 评分:9.9
蓝桥杯2018年第九届真题-倍数问题 搜索(限制搜索范围) 摘要:解题思路:注意事项:参考代码:n, k = map(int, input().split()) nums = [int(i) for i in input().split()] nums.so…… 题解列表 2021年04月13日 0 点赞 3 评论 1285 浏览 评分:9.9
Sine之舞暴力法 摘要:解题思路:注意事项:参考代码:n = int(input())if n==1: print("sin(1)+1")else: Sn = "(sin(1)+"+str(n)+")" f…… 题解列表 2021年04月13日 0 点赞 0 评论 425 浏览 评分:8.0
python解决核桃的数量 摘要:参考代码:# 获取m,n的最小公倍数 def Fun(m, n): if n % m == 0: tmmmn = n else: 题解列表 2021年04月12日 0 点赞 0 评论 852 浏览 评分:0.0
python用map函数只需要三行 摘要:解题思路: 输入数据 处理数据: 用map函数处理字符串,在python3中map函数是返回的迭代器,所以使用list(map())可以将字符串处理成…… 题解列表 2021年04月11日 0 点赞 0 评论 750 浏览 评分:6.0
1604: 蓝桥杯算法训练VIP-阶乘 摘要:解题思路:注意事项:注意单词别打错,人生苦短,我学python参考代码:import mathnumbers = math.factorial(int(input()))while numbers %…… 题解列表 2021年04月11日 0 点赞 0 评论 803 浏览 评分:0.0
Tom数-题解(Python代码) 摘要:```python import sys while True: line = sys.stdin.readline().strip() if not line: …… 题解列表 2021年04月11日 0 点赞 0 评论 397 浏览 评分:0.0
1630: 蓝桥杯算法训练VIP-摆动序列(Python3)DFS+打表 摘要:解题思路: DFS注意事项: Python用DFS在数据量大的时候会超时(6-7s),所以打表更稳一些。参考代码:def test(num, index): global tem…… 题解列表 2021年04月10日 0 点赞 0 评论 931 浏览 评分:0.0
[算法训练VIP]阶乘 python代码 简单易懂 摘要:解题思路:注意事项:参考代码:import mathsum1 = math.factorial(int(input())) # 求阶乘之和的函数 math.factorialwhile 1: …… 题解列表 2021年04月10日 0 点赞 0 评论 1199 浏览 评分:9.9