A+B python题解 摘要:解题思路:注意事项:参考代码:a,b = map(int,input().split())print(a+b)//说什么内容字数太少,本来以为会考什么数字太长需要用到数组啥的,没想到这么简单…… 题解列表 2023年11月03日 0 点赞 0 评论 729 浏览 评分:9.9
参考c语言写的 摘要:def add(d, i, x, maxh): while i <= maxh + 1: d[i] += x i += i 题解列表 2023年11月03日 0 点赞 0 评论 284 浏览 评分:9.9
数学的处理与判断简单解法 摘要:解题思路:通过for循环输出a的值注意事项:参考代码:a=input()print(len(a))#通过len求取a的长度for h in list(a):#通过list将a转化为列表 prin…… 题解列表 2023年11月02日 0 点赞 0 评论 290 浏览 评分:0.0
简化了一下 摘要:while True: N = int(input()) if N == 0: break sum_ps = 0 # 重置为0 & 题解列表 2023年11月02日 0 点赞 0 评论 637 浏览 评分:0.0
归并排序思想 摘要:解题思路:注意事项:参考代码:def mergeSort(arr): if len(arr) <= 1: return arr, 0 mid = len(arr) // 2 …… 题解列表 2023年11月01日 0 点赞 0 评论 330 浏览 评分:9.9
蓝桥杯2023年第十四届省赛真题-平方差(python代码详解)-- ‘改编自c++优质题解’ 摘要:解题思路: 改编自:蓝桥杯2023年第十四届省赛真题-平方差(c++代码详解) 纯规律 无循环 超简洁 见大佬思路 :只有当x为奇数或4的倍数时才能拆分为两个数的平方差。参…… 题解列表 2023年10月31日 0 点赞 1 评论 790 浏览 评分:8.4
财务管理!!!! 摘要:解题思路:注意事项:参考代码:a1=0a3=0while a1<12: a2=float(input()) a3+=a2 a1+=1a4=a3/12print("$%.2f"%a4)…… 题解列表 2023年10月30日 0 点赞 0 评论 509 浏览 评分:9.9
分段函数!!! 摘要:解题思路:注意事项:参考代码:n=float(input())0<=n<=20a1=2.5-na2=2-1.5*(n-3)*(n-3)a3=n/2-1.5if 0<=n<5: print("%.…… 题解列表 2023年10月29日 0 点赞 1 评论 443 浏览 评分:9.9
python搜索,开两个数组记录同行同列 摘要: a,b=map(int,input().split()) while a!=-1 and b!=-1: c=[] d=[0 for x in range(a)] e…… 题解列表 2023年10月29日 0 点赞 0 评论 249 浏览 评分:0.0
在原数组中搜索能互质的数---在剩下的数中搜索能互质的数 摘要: n=int(input()) b=list(map(int,input().split())) def gcd(a,b): if a%b == 0: return …… 题解列表 2023年10月28日 0 点赞 0 评论 233 浏览 评分:0.0