感觉自己倒巧了,应该不是用这几个函数硬整出来的 摘要:解题思路:先用max(list1)求列表最大值,然后list1.index(max(list1))找出它的索引,然后才找打了list[最大值]和list[最小值]注意事项:参考代码:list1 = l…… 题解列表 2022年04月14日 0 点赞 0 评论 424 浏览 评分:0.0
一个想法,反正第一想法是这个思路 摘要:解题思路:注意事项:默认是只转换小写字母参考代码:a = list(input())#print(a)for i in range(len(a)): ASCII = ord(a[i]) i…… 题解列表 2022年04月14日 0 点赞 0 评论 346 浏览 评分:0.0
[编程入门]水仙花数判断-题解(各语言代码) 摘要:**python** ```python print(*filter(lambda x:sum(map(lambda y:int(y)**3,str(x)))==x,range(100,1000)…… 题解列表 2022年04月14日 0 点赞 0 评论 478 浏览 评分:0.0
数列有序-题解(Python代码) 摘要:```python from bisect import insort n,m=map(int,input().split()) while n and m: l=list(map(int,…… 题解列表 2022年04月13日 0 点赞 0 评论 554 浏览 评分:0.0
本来想一个print,用\n来处理,但不熟练处理不好只能用最简单的方法了 摘要:解题思路:蒽写注意事项:参考代码:a = float(input())print('%6.2f' % a)print('%6.2f %6.2f' % (a,a))pri…… 题解列表 2022年04月13日 0 点赞 0 评论 419 浏览 评分:0.0
[编程入门]猴子吃桃的问题 【公式求解】 摘要:解题思路:求出公式注意事项:公式:2**(n-1) +2**n-2参考代码:n = int(input())a = 2**(n-1) +2**n-2print(a)…… 题解列表 2022年04月13日 0 点赞 0 评论 500 浏览 评分:2.0
[编程入门]自由下落的距离计算-题解(C语言代码)【等比数列求和】 摘要:解题思路:等比数列求和注意事项:公式:a1*(1-q**n)/(1-q)参考代码:m,n = map(int,input().split()) s_1 = m/2**n sum = (m*(1-1…… 题解列表 2022年04月13日 0 点赞 0 评论 438 浏览 评分:0.0
(fly)1920: 蓝桥杯算法提高VIP-上帝造题五分钟(python) 摘要:解题思路:注意事项:参考代码:n,q=map(int,input().split()) ls=list(map(int,input().split())) for i in range(q): …… 题解列表 2022年04月13日 0 点赞 0 评论 532 浏览 评分:0.0
(fly)1919: 蓝桥杯算法提高VIP-新建Microsoft Word文档(python) 摘要:解题思路:注意事项:参考代码:def ij(ls): if ls==[]: ls.append(1) else: for i in range(…… 题解列表 2022年04月13日 0 点赞 0 评论 477 浏览 评分:0.0
信息学奥赛一本通T1235-输出前k大的数-题解(各语言代码) 摘要:**优先队列** 每次从队列中弹出最大值,重复k次就可以得到前k大的数 **python** ```python from heapq import nlargest input() pr…… 题解列表 2022年04月13日 0 点赞 0 评论 996 浏览 评分:9.9