C语言训练-大、小写问题-题解(Python代码) 摘要:解题思路:调用str.lower()方法注意事项:无参考代码:print(input().lower())写在最后:这种用一行代码通过的感觉贼爽(不要怀疑,这就是凑字数的)%%%&F&^CVVHVXN…… 题解列表 2020年08月14日 0 点赞 4 评论 815 浏览 评分:9.9
C语言训练-求矩阵的两对角线上的元素之和-题解(Python代码) 摘要:写在开始:让我最头疼的是平台对python的支持,好几次都是本该没问题的代码提交后出错,这次也是17%的错误。心累啊。解题思路:利用python的列表生成器创建一个矩阵,依次遍历求和,即将A[i][i…… 题解列表 2020年08月14日 0 点赞 1 评论 866 浏览 评分:6.0
蓝桥杯历届试题-九宫重排-题解(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 评论 1065 浏览 评分: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 评论 459 浏览 评分: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 评论 468 浏览 评分:0.0
蓝桥杯算法训练VIP-新生舞会-题解(Python代码) 摘要:解题思路:注意事项:参考代码:n=int(input()) dic1={} dic2={} for i in range(n): s=input().split() …… 题解列表 2020年08月04日 0 点赞 0 评论 701 浏览 评分:9.9
数字整除-题解(Python代码) 摘要:解题思路:搞清楚关系即可原数-个位数的五倍和原数是否同时为17的倍数注意事项:python一定要用//整除,不能用/除参考代码:n = int(input())while n != 0: if …… 题解列表 2020年08月04日 0 点赞 0 评论 706 浏览 评分:9.9
蓝桥杯算法训练VIP-学生成绩-题解(Python代码)(student 对象) 摘要:解题思路:注意事项:参考代码:class student: def __init__(self,name,sex,age,score): self.…… 题解列表 2020年08月01日 0 点赞 0 评论 559 浏览 评分: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 评论 517 浏览 评分:0.0
蓝桥杯算法提高VIP-输入输出格式练习-题解(Python代码) 摘要:解题思路:注意事项:参考代码:s=input() s1=int(s[:3]) s2=s[3:] s3='' s4='' for i in s2: …… 题解列表 2020年07月30日 0 点赞 0 评论 702 浏览 评分:6.0