1604: 蓝桥杯算法训练VIP-阶乘 摘要:解题思路:注意事项:注意单词别打错,人生苦短,我学python参考代码:import mathnumbers = math.factorial(int(input()))while numbers %…… 题解列表 2021年04月11日 0 点赞 0 评论 708 浏览 评分:0.0
Tom数-题解(Python代码) 摘要:```python import sys while True: line = sys.stdin.readline().strip() if not line: …… 题解列表 2021年04月11日 0 点赞 0 评论 357 浏览 评分:0.0
1630: 蓝桥杯算法训练VIP-摆动序列(Python3)DFS+打表 摘要:解题思路: DFS注意事项: Python用DFS在数据量大的时候会超时(6-7s),所以打表更稳一些。参考代码:def test(num, index): global tem…… 题解列表 2021年04月10日 0 点赞 0 评论 792 浏览 评分:0.0
[算法训练VIP]阶乘 python代码 简单易懂 摘要:解题思路:注意事项:参考代码:import mathsum1 = math.factorial(int(input())) # 求阶乘之和的函数 math.factorialwhile 1: …… 题解列表 2021年04月10日 0 点赞 0 评论 1131 浏览 评分:9.9
结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:count = int(input())lst = [] #存放每个人的分数平均值str = [] #存放输入学生信息sum1=0sum2=0sum3=0for …… 题解列表 2021年04月10日 0 点赞 1 评论 759 浏览 评分:9.9
干净的解法 摘要:解题思路:注意事项:参考代码:int_count = 0str_count = 0a = input(str())for i in a: if i.isdigit(): int_count +…… 题解列表 2021年04月10日 0 点赞 0 评论 384 浏览 评分:0.0
干净的解法 摘要:解题思路:python中有转换大小写的函数:upper()----所有字母大写;lower()----所有字母小写 注意事项:参考代码:st=input() …… 题解列表 2021年04月10日 0 点赞 0 评论 645 浏览 评分:0.0
1426: 蓝桥杯历届试题-九宫重排(Python3) 摘要:解题思路: 同1878题。注意事项: 此题不能用二维数组表示状态(注释部分),会超时。参考代码:def bfs(): global start, end, cache_state…… 题解列表 2021年04月10日 0 点赞 1 评论 826 浏览 评分:9.5
优质题解 1878: 蓝桥杯2017年第八届真题-青蛙跳杯子(Python3)BFS 摘要:解题思路: 1.BFS遍历所有状态,储存状态及其对应的步数; 2.发现和结果吻合则退出。注意事项: 1.使用字典存储某一状态和对应步数,便于查找重复状态,降低时间复杂度; 2.…… 题解列表 2021年04月10日 0 点赞 1 评论 816 浏览 评分:8.5
蓝桥杯2019年第十届真题-扫地机器人-题解(Python代码) 摘要:已经AC参考:https://blog.dotcpp.com/a/68642 的思路用python写了一遍参考代码:def judge(m,q): for i in range(k): …… 题解列表 2021年04月10日 0 点赞 0 评论 1367 浏览 评分:9.9