蓝桥杯历届试题-九宫重排-题解(Python代码)(双向bfs) 摘要:解题思路:根据大佬改编的注意事项:参考代码:def check(x,y): return x<3 and x>=0 and y<3 and y>=0 def toMatrix(st…… 题解列表 2020年08月08日 0 点赞 0 评论 1047 浏览 评分:9.9
[编程入门]自定义函数之字符串拷贝-题解(Python代码) 摘要:解题思路:注意事项:参考代码:def copyStr(a,b,c): for i in range(c - 1, a, 1): print(b[i], end="") a…… 题解列表 2020年08月04日 0 点赞 0 评论 441 浏览 评分:0.0
[编程入门]三个字符串的排序-题解(Python代码) 摘要:解题思路:注意事项:参考代码:a=input() b=input() c=input() str=[a,b,c] for i in sorted(str): print(i,end=…… 题解列表 2020年08月04日 0 点赞 0 评论 446 浏览 评分:0.0
蓝桥杯算法训练VIP-新生舞会-题解(Python代码) 摘要:解题思路:注意事项:参考代码:n=int(input()) dic1={} dic2={} for i in range(n): s=input().split() …… 题解列表 2020年08月04日 0 点赞 0 评论 666 浏览 评分:9.9
数字整除-题解(Python代码) 摘要:解题思路:搞清楚关系即可原数-个位数的五倍和原数是否同时为17的倍数注意事项:python一定要用//整除,不能用/除参考代码:n = int(input())while n != 0: if …… 题解列表 2020年08月04日 0 点赞 0 评论 691 浏览 评分:9.9
蓝桥杯算法训练VIP-学生成绩-题解(Python代码)(student 对象) 摘要:解题思路:注意事项:参考代码:class student: def __init__(self,name,sex,age,score): self.…… 题解列表 2020年08月01日 0 点赞 0 评论 517 浏览 评分:9.9
蓝桥杯算法提高VIP-进制转换-题解(Python代码) 摘要:解题思路:注意事项:参考代码s=input() print(hex(int(s,16))[2:].upper(),int(s,16),oct(int(s,16))[2:]):…… 题解列表 2020年07月31日 0 点赞 0 评论 498 浏览 评分:0.0
蓝桥杯算法提高VIP-输入输出格式练习-题解(Python代码) 摘要:解题思路:注意事项:参考代码:s=input() s1=int(s[:3]) s2=s[3:] s3='' s4='' for i in s2: …… 题解列表 2020年07月30日 0 点赞 0 评论 658 浏览 评分: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 评论 309 浏览 评分:8.0
蓝桥杯算法提高VIP-色盲的民主-题解(Python代码) 摘要:解题思路:注意事项:参考代码:n=int(input()) l=[] l1=[] re=[] for i in range(n): l.append(input()) s=…… 题解列表 2020年07月29日 0 点赞 0 评论 513 浏览 评分:0.0