蓝桥杯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 评论 330 浏览 评分: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 评论 352 浏览 评分:0.0
程序员爬楼梯——递归 摘要:解题思路:注意事项:参考代码:def pa(n): if n == 1 or n == 2: return 1 elif n == 3: return 2 …… 题解列表 2023年04月05日 0 点赞 0 评论 499 浏览 评分:9.9
区间中最大的数 摘要:解题思路:注意事项:参考代码:n = int(input())L = list(map(int,input().split()))m = int(input())for i in range(m): …… 题解列表 2023年04月05日 0 点赞 0 评论 471 浏览 评分:0.0
与2无关的数——python 摘要:解题思路:注意事项:参考代码:def bxg(n): if '2' in str(n) or n%2 == 0: return 0 else: …… 题解列表 2023年04月05日 0 点赞 0 评论 377 浏览 评分:0.0
谁是你的潜在朋友 摘要:解题思路:注意事项:参考代码:while True: try: n,m = map(int,input().split()) L = [int(input()) fo…… 题解列表 2023年04月05日 0 点赞 0 评论 302 浏览 评分:0.0
字符串连接——python 摘要:解题思路:注意事项:参考代码:while True: try: a,b = map(str,input().split()) print(a+b) except…… 题解列表 2023年04月05日 0 点赞 0 评论 345 浏览 评分:0.0
后缀子串排序——python 摘要:解题思路:注意事项:参考代码:while True: try: L = input() L2 = [] for i in range(len(L)): …… 题解列表 2023年04月05日 0 点赞 0 评论 362 浏览 评分:0.0
求最大值——python 摘要:解题思路:注意事项:参考代码:while True: try: L = list(map(int,input().split())) print(f"max={max…… 题解列表 2023年04月05日 0 点赞 0 评论 323 浏览 评分:0.0
蓝桥杯2014年第五届真题-分糖果 摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))st=[0]*nflag=0cnt=0while flag==0: fo…… 题解列表 2023年04月04日 0 点赞 0 评论 338 浏览 评分:0.0