字符串的输入输出处理——每次输出中间空一行 摘要:解题思路:注意事项:前n次输出原样输出,只是中间空一行后面以空格为分隔,输出一次空一行参考代码:n = int(input())for i in range(n): print(input())…… 题解列表 2023年03月17日 0 点赞 0 评论 289 浏览 评分:0.0
蓝桥杯专题系列-1518(Python) 摘要:解题思路:全排列注意事项:死办法,没什么可以多剖析的参考代码:import itertoolslst = [i for i in range(1, 10)]for data in itertools.…… 题解列表 2023年03月17日 0 点赞 0 评论 276 浏览 评分:0.0
A+B for Input-Output Practice (IV)——计算数字之和 摘要:解题思路:注意事项:每行输入的第一个字母表示后面数字的个数,求和的时候不要计算的参考代码:while True: try: s=0 L = list(map(int,…… 题解列表 2023年03月17日 0 点赞 0 评论 265 浏览 评分:0.0
ASCII码转字母 摘要:解题思路:将ASCII码转为字母用函数chr(),列表和字符串的连接都可以用+注意事项:输入两行要接在一起,输出要输出一行参考代码:L = list(map(int,input().split()))…… 题解列表 2023年03月17日 0 点赞 0 评论 295 浏览 评分:0.0
数字整除——17的倍数 摘要:解题思路:不知道为什么,老是报错说是输入有问题,可能不能用input()吧,参考了一下其他作者的代码,终于成功了,我是新手,还有好多东西不懂,慢慢来,发个题解记录一下吧注意事项:1、那个sys.std…… 题解列表 2023年03月17日 0 点赞 0 评论 308 浏览 评分:0.0
巧用中位数,通过small和big的关系进行分类讨论 摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))b=[0]*len(a)d=sorted(a)mid=d[len(d)//2]…… 题解列表 2023年03月17日 0 点赞 0 评论 438 浏览 评分:0.0
弟弟的作业——判断算式是否正确 摘要:解题思路:参考了其他作者的代码,利用‘==’,判断算式是否成立注意事项:参考代码:def check(L): if '?' in L: return 0 el…… 题解列表 2023年03月17日 0 点赞 0 评论 281 浏览 评分:0.0
蓝桥杯专题系列-2311(Python) 摘要:解题思路:多调试代码参考代码:n = int(input())lst = [1, 1, 2]if n == 1 : print('1.00000000')elif n == 2 …… 题解列表 2023年03月16日 0 点赞 0 评论 273 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:参考代码:m = list(map(int, input().split(" "))) s = 0 for i in range(1, m[0]+1): s += i for i in…… 题解列表 2023年03月16日 0 点赞 0 评论 330 浏览 评分:9.9
巧用字典get方法 摘要:解题思路:注意事项:参考代码:s=input()t=dict()c=set()a=''for i in range(len(s)): t[s[i]]=t.get(s[i],0)+…… 题解列表 2023年03月16日 0 点赞 0 评论 304 浏览 评分:0.0