2857: 加密的病历单 摘要:```python s = input() news = str() for c in s: if c.isupper(): news += c.lower() else: …… 题解列表 2023年05月23日 0 点赞 0 评论 366 浏览 评分:0.0
蓝桥杯2014年第五届真题-分糖果 摘要:解题思路:注意事项:参考代码:head = int(input())n = map(int,input().strip().split())n = list(n)num = 0jurge = len(…… 题解列表 2023年05月23日 1 点赞 0 评论 325 浏览 评分:0.0
试除法分解质因数 摘要:解题思路:试除法分解质因数,思路来源y神注意事项:主要是格式问题,用一个list来保存所有的质因数,然后最后用join输出参考代码:def divide(x: int): if x < 2: …… 题解列表 2023年05月23日 0 点赞 0 评论 339 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:import mathn = int(input())for i in range(6, n + 1, 2): factors = [1] sqrt_i = …… 题解列表 2023年05月22日 0 点赞 0 评论 689 浏览 评分:7.3
collections.OrderedDict 有序字典 摘要:# 解题思路 1. 通过collections.OrderedDict统计字母个数,以空间换时间,降低查找的时间复杂度。 2. 时间复杂度为O(nlogn),空间复杂度为O(n) # 代码 …… 题解列表 2023年05月22日 0 点赞 1 评论 566 浏览 评分:9.9
还是那句话,人生苦短,我用python 摘要:解题思路:注意事项:参考代码:a=input()print(a+a[::-1])…… 题解列表 2023年05月20日 0 点赞 0 评论 563 浏览 评分:9.9
编写题解 1273: ISBN码 摘要:解题思路:注意事项:参考代码:d = 0a = input()b = []for i in a: if i.isdigit(): b.append(int(i))for x in …… 题解列表 2023年05月20日 0 点赞 0 评论 284 浏览 评分:0.0
编写题解 1461: 蓝桥杯基础练习VIP-FJ的字符串 摘要:解题思路:注意事项:参考代码:第一个代码用到了asc2那个玩应,我也记不清叫什么n = int(input())#输入值s = "A"#定义s=‘a’for i in range(2, n + 1):…… 题解列表 2023年05月19日 0 点赞 0 评论 276 浏览 评分:0.0
编写题解 1687: 数据结构-字符串连接 摘要:解题思路:注意事项:参考代码:for x in range(3): a = input().split() if len(a[0]+a[1])>100: print("Res…… 题解列表 2023年05月19日 0 点赞 0 评论 325 浏览 评分:0.0