蓝桥杯2018年第九届真题-缩位求和 摘要:解题思路:注意事项:参考代码:n = int(input())while len(str(n))!= 1: n = sum(int(i) for i in str(n))print(n)…… 题解列表 2023年04月05日 0 点赞 0 评论 291 浏览 评分:0.0
蓝桥杯2018年第九届真题-次数差 摘要:解题思路:注意事项:参考代码:L = input()n = L.count(max(L,key=L.count))m = L.count(min(L,key=L.count))print(n-m)…… 题解列表 2023年04月05日 0 点赞 0 评论 235 浏览 评分:0.0
蓝桥杯2015年第六届真题-饮料换购 摘要:解题思路:注意事项:参考代码:n = int(input())s = nwhile n>=3: a = n//3 s+=a n = a+n-3*aprint(s)…… 题解列表 2023年04月05日 0 点赞 0 评论 254 浏览 评分:0.0
程序员爬楼梯——递归 摘要:解题思路:注意事项:参考代码:def pa(n): if n == 1 or n == 2: return 1 elif n == 3: return 2 …… 题解列表 2023年04月05日 0 点赞 0 评论 379 浏览 评分:9.9
区间中最大的数 摘要:解题思路:注意事项:参考代码:n = int(input())L = list(map(int,input().split()))m = int(input())for i in range(m): …… 题解列表 2023年04月05日 0 点赞 0 评论 360 浏览 评分:0.0
与2无关的数——python 摘要:解题思路:注意事项:参考代码:def bxg(n): if '2' in str(n) or n%2 == 0: return 0 else: …… 题解列表 2023年04月05日 0 点赞 0 评论 272 浏览 评分:0.0
谁是你的潜在朋友 摘要:解题思路:注意事项:参考代码:while True: try: n,m = map(int,input().split()) L = [int(input()) fo…… 题解列表 2023年04月05日 0 点赞 0 评论 228 浏览 评分:0.0
字符串连接——python 摘要:解题思路:注意事项:参考代码:while True: try: a,b = map(str,input().split()) print(a+b) except…… 题解列表 2023年04月05日 0 点赞 0 评论 276 浏览 评分:0.0
后缀子串排序——python 摘要:解题思路:注意事项:参考代码:while True: try: L = input() L2 = [] for i in range(len(L)): …… 题解列表 2023年04月05日 0 点赞 0 评论 275 浏览 评分:0.0
求最大值——python 摘要:解题思路:注意事项:参考代码:while True: try: L = list(map(int,input().split())) print(f"max={max…… 题解列表 2023年04月05日 0 点赞 0 评论 240 浏览 评分:0.0