辗转相减法——最大公约数与最小公倍数 摘要:解题思路:辗转相减法注意事项:参考代码:m,n=map(int,input().split())product=m*nwhile m!=n: p=max(m,n) q=min(m,n) …… 题解列表 2022年03月29日 0 点赞 0 评论 708 浏览 评分:8.0
python 编写题解 1483: 蓝桥杯算法提高VIP-数组替换 摘要:解题思路:注意事项:参考代码:def f(a, x, b, y): if y>=len(a)-x: a=a[:x]+b[:y] else: a=a[:x]+b[…… 题解列表 2022年03月29日 0 点赞 0 评论 478 浏览 评分:9.9
python 编写题解 1484: 蓝桥杯算法提高VIP-Quadratic Equation 摘要:解题思路:注意事项:参考代码:from math import sqrta,b,c=map(float,input().split())A=sqrt(b**2-4*a*c)n=(-b+A)/(2*a)…… 题解列表 2022年03月29日 0 点赞 0 评论 468 浏览 评分:9.9
题解 1070: 二级C语言-成绩归类 摘要:解题思路:循环判断输入的数据注意事项:发现有0或负数时跳出循环,结束输入注意包括0或负数以及之后的数据都不计入统计参考代码:li=li1=[]flg = 0while True: #循环控制输入 …… 题解列表 2022年03月29日 0 点赞 0 评论 680 浏览 评分:9.0
python 编写题解 1458: 蓝桥杯2013年第四届真题-错误票据 easy 摘要:解题思路:注意事项:参考代码:n=int(input());li=[]for i in range(n): s=list(map(int,(input().strip()).split())) …… 题解列表 2022年03月29日 0 点赞 0 评论 500 浏览 评分:9.9
python 编写题解 核桃的数量 超简单!!! 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())max=max(a,b,c)while True: if max%a==0 and max%b==0 a…… 题解列表 2022年03月29日 0 点赞 0 评论 679 浏览 评分:9.9
python 编写题解 1431: 蓝桥杯2014年第五届真题-分糖果 超简单!! 摘要:解题思路:注意事项:参考代码:n=int(input())li=list(map(int,input().split()))t=0while li.count(li[0])!=n: l=[x/2…… 题解列表 2022年03月29日 0 点赞 0 评论 696 浏览 评分:7.3
python 编写题解 1115: DNA 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): a,b=map(int,input().split()) list = [[" " for …… 题解列表 2022年03月29日 0 点赞 0 评论 546 浏览 评分:9.9
python 编写题解 1097: 蛇行矩阵 摘要:解题思路:用一个函数控制,避免索引越界参考代码:def f(a,n): li=[a] for i in range(num[-1],n+1): li.append(li[-1…… 题解列表 2022年03月29日 0 点赞 0 评论 474 浏览 评分:9.9