蓝桥杯2019年第十届省赛真题-等差数列 摘要:解题思路:注意事项:参考代码:n = int(input())L = list(map(int,input().split()))L.sort()L1 = []for i in range(len(L…… 题解列表 2023年04月05日 0 点赞 0 评论 345 浏览 评分:0.0
蓝桥杯2019年第十届省赛真题-特别数的和 摘要:解题思路:注意事项:参考代码:n = int(input())s = 0for i in range(1,n+1): for j in str(i): if j in '2…… 题解列表 2023年04月05日 0 点赞 0 评论 382 浏览 评分:0.0
蓝桥杯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 评论 411 浏览 评分: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 评论 355 浏览 评分: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 评论 383 浏览 评分:0.0
程序员爬楼梯——递归 摘要:解题思路:注意事项:参考代码:def pa(n): if n == 1 or n == 2: return 1 elif n == 3: return 2 …… 题解列表 2023年04月05日 0 点赞 0 评论 530 浏览 评分:9.9
区间中最大的数 摘要:解题思路:注意事项:参考代码:n = int(input())L = list(map(int,input().split()))m = int(input())for i in range(m): …… 题解列表 2023年04月05日 0 点赞 0 评论 496 浏览 评分:0.0
与2无关的数——python 摘要:解题思路:注意事项:参考代码:def bxg(n): if '2' in str(n) or n%2 == 0: return 0 else: …… 题解列表 2023年04月05日 0 点赞 0 评论 401 浏览 评分:0.0
谁是你的潜在朋友 摘要:解题思路:注意事项:参考代码:while True: try: n,m = map(int,input().split()) L = [int(input()) fo…… 题解列表 2023年04月05日 0 点赞 0 评论 324 浏览 评分:0.0
字符串连接——python 摘要:解题思路:注意事项:参考代码:while True: try: a,b = map(str,input().split()) print(a+b) except…… 题解列表 2023年04月05日 0 点赞 0 评论 372 浏览 评分:0.0