蓝桥杯历届试题-回文数字 python 摘要:解题思路:遍历,数字->字符串->列表,再与反转后判断注意事项:要注意不能直接用=,会修改原始列表数据!参考代码:num = int(input()) cnt = 0 for i in range…… 题解列表 2021年04月24日 0 点赞 0 评论 278 浏览 评分:0.0
编写题解 2002: 计算数字个数 python 摘要:解题思路:无注意事项:使用了try参考代码:s = input() flag = 0 for i in range(len(s)): try: if int(s[i])…… 题解列表 2021年04月24日 0 点赞 0 评论 313 浏览 评分:0.0
大家可以参考一下 摘要:解题思路:我自己都不知道为什么加个while true就能通过,不加不通过,两个注意点一个字符长度出1,没有回文就出0,利用find函数不断遍历找相同字符判断回文注意事项:参考代码:while Tru…… 题解列表 2021年04月23日 0 点赞 0 评论 702 浏览 评分:9.9
直接计算(Python) 摘要:n = int(input())while n: list1=list(map(int,input().split())) list1.pop(0) list1.sort() …… 题解列表 2021年04月21日 0 点赞 0 评论 404 浏览 评分:0.0
直接转换(Python) 摘要:N=int(input())list1=[]for i in range(N): list2=list(map(int,input().split())) list1.append(lis…… 题解列表 2021年04月21日 0 点赞 0 评论 379 浏览 评分:0.0
1389: 程序员的表白 python 摘要:解题思路:注意python输出会默认换行,需要填入end参数注意事项:换行参考代码:while True: try: a = int(input()) f…… 题解列表 2021年04月20日 0 点赞 0 评论 680 浏览 评分:0.0
1481: 蓝桥杯算法提高VIP-剪刀石头布 python 摘要:解题思路:基础if else语句注意事项:无参考代码:list1 = list(map(int,input().split())) if list1[0] == 0: if list1[1…… 题解列表 2021年04月20日 0 点赞 0 评论 387 浏览 评分:0.0
直接计算(Python) 摘要:import mathT=int(input())zt=1for i in range(2,int(math.sqrt(T))+1): if T % i==0: zt=0 …… 题解列表 2021年04月20日 0 点赞 0 评论 460 浏览 评分:0.0
直接查找输出(Python) 摘要:while 1: s=input() if len(s)==0: break list1=list(s) if len(list1)<101: ma…… 题解列表 2021年04月20日 0 点赞 0 评论 449 浏览 评分:0.0
直接循环(Python) 摘要:while 1: list1=list(map(float,input().split())) if len(list1)==0: break P=list1[0]/1…… 题解列表 2021年04月20日 0 点赞 0 评论 702 浏览 评分:0.0