纯手写无调用函数写法,我是sg 摘要:解题思路:由于忘记了函数,只能纯手写注意事项:参考代码:a=int(input())if a<0 and a>100000: exitelif a<10: print(1) prin…… 题解列表 2022年03月30日 0 点赞 0 评论 365 浏览 评分:6.0
聪明的美食家(最长升序排列数判断) 摘要:解题思路:动态规划注意事项:ls[i]>=ls[j],判断此位数比前面哪一位数大,dp[j]+1>dp[i],判断升序排列数是否需要增加,若都符合,此位数的升序排列数要比之前最大的升序排列数加1参考代…… 题解列表 2022年03月29日 0 点赞 0 评论 425 浏览 评分:0.0
1622: 蓝桥杯算法训练VIP-字符删除 摘要:s = str(input().strip()) n = str(input().strip()) lst = [] for i in s: if i != n: l…… 题解列表 2022年03月29日 0 点赞 0 评论 435 浏览 评分:0.0
不用临时变量 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())li=list(map(int,input().split()))for i in range(m): x,…… 题解列表 2022年03月29日 0 点赞 0 评论 369 浏览 评分:0.0
辗转相减法——最大公约数与最小公倍数 摘要:解题思路:辗转相减法注意事项:参考代码:m,n=map(int,input().split())product=m*nwhile m!=n: p=max(m,n) q=min(m,n) …… 题解列表 2022年03月29日 0 点赞 0 评论 703 浏览 评分:8.0
python 编写题解 1483: 蓝桥杯算法提高VIP-数组替换 摘要:解题思路:注意事项:参考代码:def f(a, x, b, y): if y>=len(a)-x: a=a[:x]+b[:y] else: a=a[:x]+b[…… 题解列表 2022年03月29日 0 点赞 0 评论 475 浏览 评分:9.9
python 编写题解 1484: 蓝桥杯算法提高VIP-Quadratic Equation 摘要:解题思路:注意事项:参考代码:from math import sqrta,b,c=map(float,input().split())A=sqrt(b**2-4*a*c)n=(-b+A)/(2*a)…… 题解列表 2022年03月29日 0 点赞 0 评论 461 浏览 评分:9.9
题解 1070: 二级C语言-成绩归类 摘要:解题思路:循环判断输入的数据注意事项:发现有0或负数时跳出循环,结束输入注意包括0或负数以及之后的数据都不计入统计参考代码:li=li1=[]flg = 0while True: #循环控制输入 …… 题解列表 2022年03月29日 0 点赞 0 评论 673 浏览 评分:9.0