数字整除——17的倍数 摘要:解题思路:不知道为什么,老是报错说是输入有问题,可能不能用input()吧,参考了一下其他作者的代码,终于成功了,我是新手,还有好多东西不懂,慢慢来,发个题解记录一下吧注意事项:1、那个sys.std…… 题解列表 2023年03月17日 0 点赞 0 评论 335 浏览 评分:0.0
巧用中位数,通过small和big的关系进行分类讨论 摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))b=[0]*len(a)d=sorted(a)mid=d[len(d)//2]…… 题解列表 2023年03月17日 0 点赞 0 评论 472 浏览 评分:0.0
弟弟的作业——判断算式是否正确 摘要:解题思路:参考了其他作者的代码,利用‘==’,判断算式是否成立注意事项:参考代码:def check(L): if '?' in L: return 0 el…… 题解列表 2023年03月17日 0 点赞 0 评论 326 浏览 评分:0.0
蓝桥杯专题系列-2311(Python) 摘要:解题思路:多调试代码参考代码:n = int(input())lst = [1, 1, 2]if n == 1 : print('1.00000000')elif n == 2 …… 题解列表 2023年03月16日 0 点赞 0 评论 304 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:参考代码:m = list(map(int, input().split(" "))) s = 0 for i in range(1, m[0]+1): s += i for i in…… 题解列表 2023年03月16日 0 点赞 0 评论 346 浏览 评分:9.9
巧用字典get方法 摘要:解题思路:注意事项:参考代码:s=input()t=dict()c=set()a=''for i in range(len(s)): t[s[i]]=t.get(s[i],0)+…… 题解列表 2023年03月16日 0 点赞 0 评论 355 浏览 评分:0.0
编写题解 1003: [编程入门]密码破译 摘要:python参考代码:用列表:s = input()m = []for i in s: m.append(chr(ord(i)+4))print("".join(m))用字符串:s = inpu…… 题解列表 2023年03月16日 2 点赞 0 评论 1250 浏览 评分:9.9
Python 深度优先算法(DFS) 摘要:解题思路:注意事项:参考代码:n,r = map(int,input().strip().split()) nums = [i for i in range(1,n+1)] result = []…… 题解列表 2023年03月16日 0 点赞 0 评论 514 浏览 评分:6.0
蓝桥杯专题系列-1097(Python) 摘要:解题思路:总体思路是找规律注意事项:做好数据类型的转换处理即可参考代码:n = int(input())dp = [[0 for i in range(n)] for i in range(n)]a …… 题解列表 2023年03月16日 0 点赞 0 评论 292 浏览 评分:0.0
求最小公倍数-python 使用Counter计数 摘要:解题思路:求出每个数的所有质因数,对于每个数分别用Counter类记录每个质因数的个数,最后将三个Counter取并集,求得最小公倍数注意事项:Counter的具体用法可以参考https://zhua…… 题解列表 2023年03月16日 0 点赞 0 评论 381 浏览 评分:9.9