优质题解 1832-蓝桥杯2015年第六届真题-表格计算 摘要:解题思路:遍历矩阵中各个元素,有可能直接是数字,也可能是字符串表达式,输入时碰到数字直接转为int,便于后续条件判断碰到表达式要进行处理;1.判断是三种操作中哪一个2.取出左上角和右下角的坐标3.代入…… 题解列表 2022年03月12日 0 点赞 0 评论 641 浏览 评分:9.9
蛇行矩阵--根据数字规律 摘要:解题思路:注意事项:参考代码:n=int(input())list=list(range(1,int((n*n+n)/2)+1))for j in range(1,n+1): for i in …… 题解列表 2022年03月12日 0 点赞 0 评论 393 浏览 评分:9.9
[递归]母牛的故事 摘要:解题思路:注意事项:参考代码:while True: n = int(input()) a = b= c = 0 sum = d = 1 for i in range(n-1)…… 题解列表 2022年03月12日 0 点赞 0 评论 716 浏览 评分:8.0
求和训练python 摘要:解题思路:分别求a部分,b部分,c部分的和注意事项:欢迎报考中山大学!参考代码:import matha,b,c=map(int,input().split())squares=[]pfh=[]dsh…… 题解列表 2022年03月11日 0 点赞 0 评论 649 浏览 评分:9.9
1537: 蓝桥杯算法提高VIP-栅格打印问题 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split()) if n>0 and m>0: for i in range(n): print(…… 题解列表 2022年03月11日 0 点赞 0 评论 971 浏览 评分:0.0
1536: 蓝桥杯算法提高VIP-最长单词 摘要:解题思路:注意事项:参考代码:n=list(map(str,input().split())) ls=[len(i) for i in n] ls.sort() for i in n: …… 题解列表 2022年03月11日 0 点赞 0 评论 405 浏览 评分:0.0
1530: 蓝桥杯算法提高VIP-数字黑洞 摘要:解题思路:注意事项:参考代码:n=input() s=0 while n!=6174: ls=[int(i) for i in str(n) if i.isdigit()] i…… 题解列表 2022年03月11日 0 点赞 0 评论 210 浏览 评分:0.0
1017: [编程入门]完数的判断 摘要:解题思路:解题思维难度不大,关键在于提高效率。注意事项:参考代码:正确版本n = eval(input()) for i in range(2, n+1): l = [1] a …… 题解列表 2022年03月11日 0 点赞 0 评论 554 浏览 评分:6.0
1507: 蓝桥杯算法提高VIP-去注释 摘要:解题思路:注意事项:参考代码:s=0 while True: try: st=input() if '/*' in st:   题解列表 2022年03月11日 0 点赞 0 评论 472 浏览 评分:8.0
1512: 蓝桥杯算法提高VIP-多项式输出 摘要:n=int(input()) a=list(map(int,input().split())) l=len(a) b=[] for i in range(len(a)): b.app…… 题解列表 2022年03月11日 0 点赞 0 评论 351 浏览 评分:0.0