[1023]:选择排序(Python) 一句话就AC的代码,听说Python都喜欢代码少一些 摘要:解题思路:一句话就AC的代码,听说Python都喜欢代码少一些注意事项:没啥可注意的事项,总共连空格和标点才60个字符,注意啥啊?嗯,有个事要注意,下面就放图了:___________________…… 题解列表 2021年10月10日 0 点赞 2 评论 946 浏览 评分:6.6
[编程入门]猴子吃桃的问题(python题解) 摘要:解题思路:有脑往前推注意事项:注意循环起止的取值参考代码:peach = 1 N = int(input()) for i in range(N-1,0,-1): peach = (pe…… 题解列表 2021年10月07日 0 点赞 0 评论 733 浏览 评分:7.3
求和训练题解 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())alist=[int(x) for x in range(1,a+1)]blist=[int(x)*int(x…… 题解列表 2021年10月04日 0 点赞 0 评论 908 浏览 评分:0.0
水仙花数题解 摘要:解题思路:注意事项:参考代码:for i in range(100,1000): s=0 astr=str(i) for j in astr: x=int(j) …… 题解列表 2021年10月04日 0 点赞 0 评论 454 浏览 评分:9.0
亲密数题解 摘要:解题思路:注意事项:参考代码:for i in range(1,3000): s=k=0 for j in range(1,i): if i%j==0: …… 题解列表 2021年10月03日 0 点赞 4 评论 846 浏览 评分:8.8
三个数字排序题解 摘要:解题思路:注意事项:参考代码:list=[int(a) for a in input().split()]list.sort()for i in list: print(i,end=" ")…… 题解列表 2021年10月02日 0 点赞 0 评论 751 浏览 评分:0.0
分段函数—题解 摘要:解题思路:注意事项:如果使用elif,其实之前的条件就不用写了参考代码:x=int(input())if x<1: y=xelif x<10: y=2*x-1else: y=3*x-…… 题解列表 2021年10月01日 0 点赞 0 评论 674 浏览 评分:0.0
温度转换—题解 摘要:解题思路:注意事项:参考代码:c=5*(float(input())-32)/9print('c={:.2f}'.format(c))…… 题解列表 2021年10月01日 0 点赞 0 评论 1013 浏览 评分:6.0
蓝桥杯算法提高VIP-数组输出 摘要:解题思路:将整个数组展平到一维,通过列表索引到绝对值最大的(list.index为第一个最大值的索引,也就可以很好解决当有多个最大值时候,输出行最小列最小的);将该索引值转换成在数组中的行列即可。注意…… 题解列表 2021年09月28日 0 点赞 0 评论 465 浏览 评分:0.0
蓝桥杯2014年第五届真题-分糖果 摘要:解题思路:注意事项:参考代码:n = int(input())ans = list(map(int,input().split()))list = [0]*100p = 0while True: …… 题解列表 2021年09月26日 0 点赞 0 评论 359 浏览 评分:0.0