2860基础解法(Python) 摘要:解题思路:全小写(大写)、替换空格、删除冗余注意事项:一定要加strip()参考代码:n1 = input().lower().replace(' ', '').str…… 题解列表 2023年04月09日 0 点赞 2 评论 559 浏览 评分:9.9
蓝桥杯算法提高VIP—理财计划—Python 摘要:解题思路:注意事项:参考代码:k,n,p=map(float,input().split())s=0m=kfor i in range(1,int(n+1)): s+=k*p k+=k*p+m…… 题解列表 2023年04月08日 0 点赞 0 评论 471 浏览 评分:9.9
bfs迷宫最短路径-Python 摘要:解题思路: bfs 建议看b站这个视频https://www.bilibili.com/video/BV1CM4y1o7nZ/?spm_id_from=333.880.my_history.page.…… 题解列表 2023年04月07日 0 点赞 0 评论 503 浏览 评分:9.9
城市路(Dijkstra) 摘要:解题思路:注意事项:参考代码:import heapqN=100010e=[0]*Nne=[0]*Nw=[0]*Nh=[-1]*Nindex=0st=[False]*Ndef add(a,b,c): …… 题解列表 2023年04月07日 0 点赞 0 评论 431 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input().split())#输入list1 = [31,29,31,30,31,30,31,31,30,31,30,31]#闰年每月…… 题解列表 2023年04月07日 0 点赞 0 评论 418 浏览 评分:9.9
杨辉三角——python 摘要:解题思路:注意事项:参考代码:n,m = map(int,input().split())L = [[1],[1,1]]for i in range(1,n): a = L[i] b = …… 题解列表 2023年04月07日 0 点赞 0 评论 439 浏览 评分:0.0
矩阵的对角线之和 摘要:解题思路:注意事项:参考代码:dp = [list(map(int,input().split()))for i in range(5)]a = b = 0for i in range(5): …… 题解列表 2023年04月07日 0 点赞 0 评论 520 浏览 评分:0.0
循环练习之完美数判断 摘要:解题思路:注意事项:参考代码:def wm(n): s = 1 for i in range(2,n//2+1): if n%i == 0: s+=i …… 题解列表 2023年04月07日 0 点赞 0 评论 561 浏览 评分:0.0
单位矩阵的转置——python 摘要:解题思路:注意事项:参考代码:while True: try: n = int(input()) dp = [[0 for i in range(n)]for i i…… 题解列表 2023年04月07日 0 点赞 0 评论 806 浏览 评分:0.0
倒数第二——python 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): m = int(input()) L = list(map(int,input().sp…… 题解列表 2023年04月07日 0 点赞 0 评论 450 浏览 评分:0.0