蓝桥杯2018年第九届真题-防御力 摘要:解题思路:注意事项:参考代码:n1,n2=map(int,input().split()) lsA=list(map(int,input().split())) copy_lsA=[_ for _…… 题解列表 2023年02月15日 0 点赞 0 评论 299 浏览 评分:9.9
2518: 信息学奥赛一本通T1620-质因数分解 摘要:解题思路:注意事项:数学有点差,最开始并没有想到两个不同质数的乘积,能够将它整除出来的只可能是质数。导致时间超时。因为只有两个数,只要求出第一个质数就能够算出另一个质数参考代码:import math…… 题解列表 2023年02月15日 0 点赞 0 评论 491 浏览 评分:9.9
Python解决-动态规划 摘要:解题思路:注意事项:参考代码:V = int(input())n = int(input())dp = [0]*(V+1)c = [0]*(n+1)for i in range(1, n+1): …… 题解列表 2023年02月14日 0 点赞 0 评论 274 浏览 评分:0.0
编写题解 1010: [编程入门]利润计算 摘要:解题思路:注意事项:参考代码:I=int(input())if 0<I<=100000: j=I*0.1elif 100000<I<=200000: j=100000*0.1+(I-100…… 题解列表 2023年02月14日 0 点赞 0 评论 631 浏览 评分:0.0
编写题解 1688: 数据结构-字符串插入 摘要:解题思路:注意事项:参考代码:a,b,c=input().split()print(a[:int(c)-1]+b+a[int(c)-1:])…… 题解列表 2023年02月14日 0 点赞 0 评论 284 浏览 评分:9.9
Python求解背包问题 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())w=[0]*(n+1)v=[0]*(n+1)for i in range(1,n+1): w[i],v[i]…… 题解列表 2023年02月14日 0 点赞 0 评论 264 浏览 评分:0.0
2811: 救援(Python) 摘要:解题思路:注意事项:参考代码:from decimal import * n = int(input()) t0 = 0 while True: try: x,y,num=map(in…… 题解列表 2023年02月14日 0 点赞 0 评论 262 浏览 评分:0.0
杨辉三角解题 摘要:解题思路:注意事项:参考代码:while True: try: def tri(row): List = [[1 for i in range(j)] for…… 题解列表 2023年02月13日 0 点赞 0 评论 274 浏览 评分:0.0
蓝桥杯基础练习VIP-FJ的字符串 摘要:解题思路:字符编码注意事项:字符的编码转换参考代码:s='A'n=int(input())for i in range(n): b=s a=b s=b+chr(65+…… 题解列表 2023年02月13日 0 点赞 0 评论 278 浏览 评分:9.9
2821: 开关灯 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())l=[1]*nfor i in range(1,m+1): for j in range(1,n+1): …… 题解列表 2023年02月13日 0 点赞 0 评论 446 浏览 评分:0.0