题解列表
辗转相减法——最大公约数与最小公倍数
摘要:解题思路:辗转相减法注意事项:参考代码:m,n=map(int,input().split())product=m*nwhile m!=n: p=max(m,n) q=min(m,n) ……
python 编写题解 1483: 蓝桥杯算法提高VIP-数组替换
摘要:解题思路:注意事项:参考代码:def f(a, x, b, y): if y>=len(a)-x: a=a[:x]+b[:y] else: a=a[:x]+b[……
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)……
题解 1070: 二级C语言-成绩归类
摘要:解题思路:循环判断输入的数据注意事项:发现有0或负数时跳出循环,结束输入注意包括0或负数以及之后的数据都不计入统计参考代码:li=li1=[]flg = 0while True: #循环控制输入 ……
python 编写题解 1458: 蓝桥杯2013年第四届真题-错误票据 easy
摘要:解题思路:注意事项:参考代码:n=int(input());li=[]for i in range(n): s=list(map(int,(input().strip()).split())) ……
python 编写题解 核桃的数量 超简单!!!
摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())max=max(a,b,c)while True: if max%a==0 and max%b==0 a……
python 编写题解 1431: 蓝桥杯2014年第五届真题-分糖果 超简单!!
摘要:解题思路:注意事项:参考代码:n=int(input())li=list(map(int,input().split()))t=0while li.count(li[0])!=n: l=[x/2……
python 编写题解 1115: DNA
摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): a,b=map(int,input().split()) list = [[" " for ……