蓝桥杯算法提高VIP-进制转换-题解(Python代码) 摘要:解题思路:注意事项:参考代码s=input() print(hex(int(s,16))[2:].upper(),int(s,16),oct(int(s,16))[2:]):…… 题解列表 2020年07月31日 0 点赞 0 评论 552 浏览 评分:0.0
蓝桥杯算法提高VIP-输入输出格式练习-题解(Python代码) 摘要:解题思路:注意事项:参考代码:s=input() s1=int(s[:3]) s2=s[3:] s3='' s4='' for i in s2: …… 题解列表 2020年07月30日 0 点赞 0 评论 777 浏览 评分:6.0
蓝桥杯算法提高VIP-质因数-题解(Python代码) 摘要:解题思路:注意事项:参考代码:n=int(input()) n1=n l=[] for i in range(2,n+1): while n%i==0: l.appe…… 题解列表 2020年07月30日 0 点赞 0 评论 335 浏览 评分:8.0
蓝桥杯算法提高VIP-色盲的民主-题解(Python代码) 摘要:解题思路:注意事项:参考代码:n=int(input()) l=[] l1=[] re=[] for i in range(n): l.append(input()) s=…… 题解列表 2020年07月29日 0 点赞 0 评论 686 浏览 评分:0.0
蓝桥杯算法提高VIP-聪明的美食家-题解(Python代码)最长不下降子序列(nlogn) 摘要:解题思路:注意事项:参考代码:import bisect n=int(input()) l=list(map(int,input().split())) d=[]#初始化列表 if n==0:…… 题解列表 2020年07月28日 0 点赞 0 评论 675 浏览 评分:9.9
蓝桥杯算法提高VIP-统计单词数-题解(Python代码) 摘要:解题思路:注意事项:参考代码:import re s=input().lower() s=s.strip() s=re.split('\W+',s)#'/W+'正…… 题解列表 2020年07月27日 0 点赞 0 评论 293 浏览 评分:0.0
蓝桥杯算法提高VIP-素数求和-题解(Python代码)(素数筛选法) 摘要:解题思路:注意事项:参考代码:def scre_prime(n): re=[] primes=[True for i in range(n+1)] p=2 …… 题解列表 2020年07月27日 0 点赞 0 评论 684 浏览 评分:9.9
蓝桥杯算法提高VIP-笨小猴-题解(Python代码) 摘要:解题思路:注意事项:参考代码:import math def prime(n): if n<=1: return 0 &nbs 题解列表 2020年07月27日 0 点赞 0 评论 579 浏览 评分:3.0
蓝桥杯算法提高VIP-矩阵乘方-题解(Python代码)矩阵快速幂 摘要:解题思路:注意事项:参考代码:def mulMatrix(x,y): c=[[0 for i in range(2)] for i in range(2)] for…… 题解列表 2020年07月26日 0 点赞 0 评论 522 浏览 评分:0.0
蓝桥杯算法提高VIP-矩阵相乘 -题解(Python代码) 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split()) l=[] l1=[] l2=[] for i in range(a): l.appen…… 题解列表 2020年07月26日 0 点赞 0 评论 386 浏览 评分:0.0