2861: 验证子串(python) 摘要:解题思路:注意事项:参考代码:a = input().strip() # 注意把前导空格去掉 b = input().strip() if a in b: print("%s is s…… 题解列表 2023年02月24日 0 点赞 0 评论 401 浏览 评分:9.9
2858: 整理药名(python) 摘要:解题思路:注意事项:参考代码:n = int(input()) while True: try: s = input() s1 = "" for i in s: …… 题解列表 2023年02月24日 0 点赞 0 评论 423 浏览 评分:9.9
2857: 加密的病历单(python) 摘要:解题思路:注意事项:参考代码:s = input() s1 = "" for i in s: if (i >= 'x' and i <= 'z') or …… 题解列表 2023年02月23日 0 点赞 0 评论 350 浏览 评分:9.9
【Python题解】蓝桥杯2013年第四届真题-带分数 摘要:解题思路:思路是参照另一位佬,对代码进行了注释和部分修改。从整数->分母->分子,逐个进行判断,具体见代码。参考代码:n = int(input()) # L = ['1', …… 题解列表 2023年02月23日 0 点赞 0 评论 275 浏览 评分:9.9
2839: 石头剪刀布(Python) 摘要:解题思路:注意事项:参考代码:N,NA,NB = map(int,input().split()) la = list(map(int,input().split())) lb = list(ma…… 题解列表 2023年02月23日 0 点赞 0 评论 460 浏览 评分:9.5
2819: 数字反转 摘要:解题思路:注意事项:参考代码:a = input() a = a[::-1] # 字符串逆序 if a[len(a)-1] == '-': # 如果输入负数 a = …… 题解列表 2023年02月23日 0 点赞 0 评论 544 浏览 评分:9.9
2826: 雇佣兵(python) 摘要:解题思路:注意事项:参考代码:from decimal import * M,N,X = map(int,input().split()) while X > 0 and X * N >= M: …… 题解列表 2023年02月22日 0 点赞 0 评论 336 浏览 评分:0.0
编写题解 1102: 明明的随机数 摘要:解题思路:注意事项:参考代码:input()lst=list(set(int(i) for i in input().split()))lst.sort()lst=list(map(str,lst))…… 题解列表 2023年02月22日 0 点赞 0 评论 377 浏览 评分:0.0
2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:a = input() for i in a[::-1]: print(i,end=' ')代码2:a = input() a = a[::…… 题解列表 2023年02月22日 0 点赞 0 评论 464 浏览 评分:9.0
2817: 级数求和 摘要:注意事项:参考代码:Sn = n = 0 k = int(input()) while True: n = n + 1 Sn = Sn + 1/n if Sn > 题解列表 2023年02月21日 0 点赞 0 评论 360 浏览 评分:2.0