蛇形矩阵(for循环依次打印) python代码 摘要:解题思路:注意事项:参考代码:a = int(input())list1 = []list2 = []for i in range(1,a+1): list1.append((1+i)*i//2…… 题解列表 2021年04月09日 0 点赞 1 评论 929 浏览 评分:9.9
简单python走起 超简单 摘要:解题思路1.设置一个函数判断是否是质数2。先判断各位 然后判断十位数。。。。。注意事项:参考代码:import math def zs(i): if i%2 == 0: …… 题解列表 2021年04月09日 0 点赞 0 评论 268 浏览 评分:9.9
python 字符串对比 摘要:解题思路:注意事项:参考代码:str1 = input()str2 = input()if len(str1) != len(str2): print(1)elif len(str1) == l…… 题解列表 2021年04月09日 0 点赞 0 评论 452 浏览 评分:0.0
2259: 蓝桥杯算法提高-三进制数位和(Python3) 摘要:解题思路:注意事项:参考代码:def turn(n): res = '' division = 3 ** 5 while division: …… 题解列表 2021年04月09日 0 点赞 0 评论 256 浏览 评分:0.0
蓝桥杯算法训练VIP-JAM计数法(详细解释) 摘要:解题思路:借用了@小哈哈这位兄弟的题解:题目中说“bdfij”与“bdghi”是依次的Jam数字,意思就是两个数相邻只是bdfij < bdghi 然而我们要知道为什么 bdfij < bdghi其实…… 题解列表 2021年04月09日 0 点赞 0 评论 515 浏览 评分:9.9
简单python走起 摘要:解题思路:注意事项:参考代码:mas=input().split() mas_1=[len(i) for i in mas ] mx=mas_1.index(max(mas_1)) print(…… 题解列表 2021年04月09日 0 点赞 0 评论 325 浏览 评分:0.0
简单python走起 摘要:解题思路:注意事项:参考代码:def cc(n): a=list(str(n)) b=list(str(n)) a.sort(reverse=True) b.…… 题解列表 2021年04月09日 0 点赞 0 评论 391 浏览 评分:0.0
简单python走起 摘要:解题思路:注意事项:参考代码:for i in range(100,335): l=[] a=i b=2*i c=3*i l.extend(…… 题解列表 2021年04月09日 0 点赞 0 评论 491 浏览 评分:0.0
Python代码,大道至简 摘要:解题思路:注意事项:参考代码:while True: n = list(map(int,input().split())) if n[0] == 0: exit(0) …… 题解列表 2021年04月08日 0 点赞 0 评论 269 浏览 评分:0.0
蓝桥杯算法提高VIP-复数求和 摘要: num = int(input()) ls = [] m, n = 0, 0 for i in range(num): a, b = map(i…… 题解列表 2021年04月08日 0 点赞 0 评论 307 浏览 评分:7.0