3107: 最短路径(dijkstra算法) 摘要:解题思路:注意事项:参考代码:n = int(input()) v0 = int(input())-1 matrix = [] M = float("inf") for i in range(…… 题解列表 2023年04月06日 0 点赞 0 评论 431 浏览 评分: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 评论 384 浏览 评分: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 评论 595 浏览 评分: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 评论 367 浏览 评分:9.9
最大配对——python 摘要:解题思路:注意事项:参考代码:n = int(input())L1 = list(map(int,input().split()))L2 = list(map(int,input().split())…… 题解列表 2023年04月06日 0 点赞 0 评论 341 浏览 评分:0.0
阶乘末尾的K位 摘要:解题思路:注意事项:参考代码:from math import*n,k = map(int,input().split())a = str(factorial(n))while a.endswith(…… 题解列表 2023年04月06日 0 点赞 0 评论 449 浏览 评分:0.0
超级楼梯——递归 摘要:解题思路:注意事项:参考代码:def pa(n): if n == 1 or n == 2: return n else: return pa(n-1)+pa(…… 题解列表 2023年04月06日 0 点赞 0 评论 517 浏览 评分:0.0
统计字母个数 摘要:解题思路:注意事项:参考代码:L = list(input())while '#'not in L: L.extend(input())for i in range(ord(&#…… 题解列表 2023年04月06日 0 点赞 0 评论 457 浏览 评分:0.0
3129: 信息学奥赛一本通T1352-奖金(拓扑排序) 摘要:解题思路:注意事项:参考代码:n,m = map(int,input().split()) # 构造图 graph = {i:[] for i in range(1,n+1)} for i in…… 题解列表 2023年04月06日 0 点赞 0 评论 639 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路:注意事项:参考代码:a=input()k=int(a[1])long=1189width=841temp=0i=0while(i!=k): long=long//2 if wid…… 题解列表 2023年04月06日 0 点赞 0 评论 1002 浏览 评分:8.4