小南解题--字符串编辑--62ms 摘要:a=list(input())b=list(input().split())wz=a.index('.')a=a[:wz+1]if b[1] in a: if b[0]==…… 题解列表 2022年08月26日 0 点赞 0 评论 1206 浏览 评分:0.0
小南解题-最长字符串---72ms 摘要:a,b,c,d,e=map(str,input().split())k=max(len(a),len(b),len(c),len(d),len(e))if k==len(a): print(a…… 题解列表 2022年08月26日 0 点赞 0 评论 543 浏览 评分:0.0
蓝桥杯2013年第四届真题-核桃的数量--91ms,49ms 摘要:#写法一a, b, c = map(int, input().split())for i in range(min(a,b,c), (a*b*c)+1): if i % a == 0 and i…… 题解列表 2022年08月26日 0 点赞 0 评论 499 浏览 评分:0.0
1512: 蓝桥杯算法提高VIP-多项式输出-16行代码-简洁 摘要:解题思路:1 lst = [系数列表] 遍历lst通过字符串相加的形式组成目标输出字符串2 只需要特别处理下特俗情况,通过if进行分类 比如 1/-1: 输出中系数1要省略 …… 题解列表 2022年08月25日 0 点赞 1 评论 497 浏览 评分:9.0
字符串逆序 摘要:解题思路:注意事项:参考代码:n=95859 while True: n+=1 a=str(n) b=a[::-1] if a==b: pr…… 题解列表 2022年08月24日 0 点赞 0 评论 807 浏览 评分:9.9
耗的时间有点多 摘要:解题思路:注意事项:参考代码:c=[] for i in range(1000,10000): a=int(i/100) b=int(i%100) if (a+b)**…… 题解列表 2022年08月24日 0 点赞 0 评论 542 浏览 评分:9.9
个人思路,随便看看吧 摘要:解题思路:学会列表的相关操作很重要注意事项:参考代码:def fun(n): l1 = [n] while n != 1: if n % 2 == 0: …… 题解列表 2022年08月22日 0 点赞 0 评论 493 浏览 评分:0.0
1023——————选择排序 #一行foriinsorted(list(map(int,input().split()))):print(i)#两行n=list(map(int,input().split()))foriinsorted(n):print(i)#三行n=list(map(int, 题解列表 2022年08月21日 0 点赞 0 评论 780 浏览 评分:9.9
1517——————蓝桥杯算法提高VIP-实数相加 摘要:**import** 导入模块,每次使用模块中的函数都要是定是哪个模块。 **from…import *** 导入模块,每次使用模块中的函数,直接使用函数就可以 **decimal 模块**:…… 题解列表 2022年08月21日 0 点赞 0 评论 646 浏览 评分:0.0
1092——————A+B for Input-Output Practice 题目:1092:A+BforInput-OutputPractice**题目描述**Yourtaskistocalculatethesumofsomeintegers——翻译(来源百度翻译):你的任务是计算一些整数的和。**输入格式**InputcontainsanintegerNinthefirst 题解列表 2022年08月20日 0 点赞 0 评论 488 浏览 评分:0.0