做题记录2022.3.10(ac:100%) 摘要:解题思路:暴力,但不完全暴力注意事项:参考代码:string = input().strip() length = len(string) max_len = float("-inf") # 参…… 题解列表 2022年03月10日 0 点赞 0 评论 496 浏览 评分:0.0
做题记录2022.3.10(ac:100%) 摘要:解题思路:我也没有思路,写的题多了,也便有了套路按照代码注释的交换字符就能得到下一个字典序字符串注意事项:参考代码:temp = input().strip() string = list(temp…… 题解列表 2022年03月10日 0 点赞 0 评论 426 浏览 评分:9.9
1431: 蓝桥杯2014年第五届真题-分糖果 摘要:解题思路:注意事项:参考代码:n = eval(input()) l = list(map(int, input().split())) s = 0 while True: for i…… 题解列表 2022年03月10日 0 点赞 0 评论 367 浏览 评分:0.0
蓝桥杯2020年第十一届省赛真题-整除序列python 摘要:n=int(input()) while True: print(int(n),end=" ") #输出数字带空格 if n==1: break e…… 题解列表 2022年03月10日 0 点赞 0 评论 683 浏览 评分:6.0
1502: 蓝桥杯算法提高VIP-利息计算 摘要:解题思路:注意事项:参考代码:n,m=map(float,input().split())print('%.2f'%(n+n*(m/100)*0.8))…… 题解列表 2022年03月10日 0 点赞 0 评论 444 浏览 评分:0.0
1500: 蓝桥杯算法提高VIP-分数统计 摘要:解题思路:注意事项:参考代码:n=int(input()) num=map(int,input().split()) a,b,c,d,e=[],[],[],[],[] for i in num:…… 题解列表 2022年03月10日 0 点赞 0 评论 370 浏览 评分:0.0
字符逆序---还可以 摘要:解题思路:遍历列表中的每一个元素,从列表的最后开始遍历,列表a[::-1]表示从最后一个元素开始,将每一个元素都倒序赋值给一个新的变量,添加道一个新的列表里,输出列表,元素倒序不一定要用reverse…… 题解列表 2022年03月10日 0 点赞 0 评论 531 浏览 评分:0.0
简单优雅,代码超短 摘要:`` n = int(input()) u = 0 #记录是否有输出数字 for i in range(10000,1000000):…… 题解列表 2022年03月10日 0 点赞 2 评论 582 浏览 评分:9.1
蓝桥杯2020年第十一届省赛真题-八次求和 摘要:解题思路:注意事项:参考代码:n=int(input())sun=0for i in range(1,n+1): sun+=i**8print(sun%123456789)…… 题解列表 2022年03月09日 0 点赞 1 评论 496 浏览 评分:0.0
做题记录2022.3.9(ac:100%) 摘要:解题思路:模拟题目描述的蚂蚁行动规则注意事项:参考代码:m, n = map(int, input().strip().split()) matrix = [] for i in range(m)…… 题解列表 2022年03月09日 0 点赞 0 评论 480 浏览 评分:0.0