蓝桥杯2018年第九届真题-倍数问题 搜索(限制搜索范围) 摘要:解题思路:注意事项:参考代码:n, k = map(int, input().split()) nums = [int(i) for i in input().split()] nums.so…… 题解列表 2021年04月13日 0 点赞 3 评论 887 浏览 评分: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 评论 217 浏览 评分:8.0
python解决核桃的数量 摘要:参考代码:# 获取m,n的最小公倍数 def Fun(m, n): if n % m == 0: tmmmn = n else: 题解列表 2021年04月12日 0 点赞 0 评论 422 浏览 评分:0.0
python用map函数只需要三行 摘要:解题思路: 输入数据 处理数据: 用map函数处理字符串,在python3中map函数是返回的迭代器,所以使用list(map())可以将字符串处理成…… 题解列表 2021年04月11日 0 点赞 0 评论 438 浏览 评分:6.0
1604: 蓝桥杯算法训练VIP-阶乘 摘要:解题思路:注意事项:注意单词别打错,人生苦短,我学python参考代码:import mathnumbers = math.factorial(int(input()))while numbers %…… 题解列表 2021年04月11日 0 点赞 0 评论 390 浏览 评分:0.0
Tom数-题解(Python代码) 摘要:```python import sys while True: line = sys.stdin.readline().strip() if not line: …… 题解列表 2021年04月11日 0 点赞 0 评论 267 浏览 评分:0.0
1630: 蓝桥杯算法训练VIP-摆动序列(Python3)DFS+打表 摘要:解题思路: DFS注意事项: Python用DFS在数据量大的时候会超时(6-7s),所以打表更稳一些。参考代码:def test(num, index): global tem…… 题解列表 2021年04月10日 0 点赞 0 评论 467 浏览 评分:0.0
[算法训练VIP]阶乘 python代码 简单易懂 摘要:解题思路:注意事项:参考代码:import mathsum1 = math.factorial(int(input())) # 求阶乘之和的函数 math.factorialwhile 1: …… 题解列表 2021年04月10日 0 点赞 0 评论 933 浏览 评分:9.9
结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:count = int(input())lst = [] #存放每个人的分数平均值str = [] #存放输入学生信息sum1=0sum2=0sum3=0for …… 题解列表 2021年04月10日 0 点赞 1 评论 510 浏览 评分:9.9
干净的解法 摘要:解题思路:注意事项:参考代码:int_count = 0str_count = 0a = input(str())for i in a: if i.isdigit(): int_count +…… 题解列表 2021年04月10日 0 点赞 0 评论 238 浏览 评分:0.0