(fly)1709: 数据结构-Floyd(弗洛伊德)最短路径算法(python) 摘要:解题思路:注意事项:参考代码:n=int(input()) inf=float('inf') dp=[] for i in range(n): dp.append(li…… 题解列表 2022年03月09日 0 点赞 0 评论 300 浏览 评分:0.0
核桃的数量 摘要:解题思路:注意事项:参考代码:a,b,c=list(map(int,input().split()))for _ in range(1,1000): if(_%a==0 and _%b==0 a…… 题解列表 2022年03月08日 0 点赞 0 评论 446 浏览 评分:9.9
特殊回文数-题解(Python代码)(易理解) 摘要:解题思路:s5 = ABCBA s6 = ABCCBA重点: 1.s5: 第1位=第5位 第2位=第4位 2.s6: 第1位=第6位 第2位=第5位 第3位=第4位 …… 题解列表 2022年03月08日 0 点赞 0 评论 454 浏览 评分:9.9
【Python】蓝桥杯基础练习VIP-回形取数 摘要:思路很简单,首先定义一个方向数组来存储方向,判断对应方向前进后是否碰到边界或者已经到达过的位置,若是则切换下一个方向。 ```python # 获取对应的下一个方向 def getNext(d)…… 题解列表 2022年03月08日 0 点赞 0 评论 562 浏览 评分:9.9
二级C语言-寻找矩阵最值 摘要:解题思路:注意事项:参考代码:a=int(input())b=[]d=[]for i in range(a): c=list(map(int,input().split())) b.app…… 题解列表 2022年03月07日 0 点赞 0 评论 332 浏览 评分:0.0
编写题解 1033: [编程入门]自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:def yuan(m): for x in m: if x in ['a','e','i','o&#…… 题解列表 2022年03月07日 0 点赞 0 评论 441 浏览 评分:9.9
二级C语言-公约公倍-辗转相除 摘要:解题思路:辗转相除注意事项:两种输入情况,一种 一次两个数字,一种一次一个数字,输入两次参考代码:def gcd(x, y): m = max(x, y) n = min(x, y) …… 题解列表 2022年03月07日 0 点赞 0 评论 775 浏览 评分:9.9
2285: 蓝桥杯2018年第九届真题-螺旋折线 摘要:解题思路:注意事项:参考代码:x,y=map(int,input().split()) l=max(abs(x),abs(y)) if x == 0 and y==0: print(0)…… 题解列表 2022年03月07日 0 点赞 0 评论 566 浏览 评分:0.0
二级C语言-自定义函数 摘要:解题思路:注意事项:注意一次输入俩个数据还是一次输入一个数据,输入俩次参考代码:d=input()a=d.split(' ')if len(a)==1: x=(input()) …… 题解列表 2022年03月07日 0 点赞 0 评论 449 浏览 评分:0.0
2610: 蓝桥杯2021年第十二届省赛真题-杨辉三角形(Python) 摘要:```python def C(a,b): res = 1 for i in range(1,b+1): res = res * a / i …… 题解列表 2022年03月07日 0 点赞 0 评论 1932 浏览 评分:7.4