单位矩阵的转置——python 摘要:解题思路:注意事项:参考代码:while True: try: n = int(input()) dp = [[0 for i in range(n)]for i i…… 题解列表 2023年04月07日 0 点赞 0 评论 562 浏览 评分: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 评论 248 浏览 评分:0.0
3107: 最短路径(dijkstra算法) 摘要:解题思路:注意事项:参考代码:n = int(input()) v0 = int(input())-1 matrix = [] M = float("inf") for i in range(…… 题解列表 2023年04月06日 0 点赞 0 评论 191 浏览 评分:0.0
蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:参考代码:n=int(input())flag=0for i in range(10000,1000000): a=str(i) l=list(map(int,a)) …… 题解列表 2023年04月06日 0 点赞 0 评论 211 浏览 评分:6.0
蓝桥杯2018年第九届真题-全球变暖 摘要:解题思路:注意事项:参考代码:from collections import dequen=int(input())m=[[i for i in input()]for _ in range(n)]v…… 题解列表 2023年04月06日 0 点赞 0 评论 338 浏览 评分:0.0
求s=a+aa+aaa+aaaa+aa...a的值 摘要:解题思路:注意事项:参考代码:a,n=map(int,input().split())a=str(a)s=[]S=0for i in range(n): s.append(a*(i+1)) …… 题解列表 2023年04月06日 0 点赞 0 评论 210 浏览 评分:9.9
最大配对——python 摘要:解题思路:注意事项:参考代码:n = int(input())L1 = list(map(int,input().split()))L2 = list(map(int,input().split())…… 题解列表 2023年04月06日 0 点赞 0 评论 176 浏览 评分:0.0
阶乘末尾的K位 摘要:解题思路:注意事项:参考代码:from math import*n,k = map(int,input().split())a = str(factorial(n))while a.endswith(…… 题解列表 2023年04月06日 0 点赞 0 评论 220 浏览 评分:0.0
超级楼梯——递归 摘要:解题思路:注意事项:参考代码:def pa(n): if n == 1 or n == 2: return n else: return pa(n-1)+pa(…… 题解列表 2023年04月06日 0 点赞 0 评论 337 浏览 评分:0.0
统计字母个数 摘要:解题思路:注意事项:参考代码:L = list(input())while '#'not in L: L.extend(input())for i in range(ord(&#…… 题解列表 2023年04月06日 0 点赞 0 评论 242 浏览 评分:0.0