2263: 蓝桥杯2015年第六届真题-饮料换购 摘要:解题思路:注意事项:参考代码:n=int(input()) m=n s=0 while True: if n<3: break s+=n//3 n…… 题解列表 2022年03月29日 0 点赞 0 评论 478 浏览 评分:0.0
4行代码,轻松搞定 摘要:解题思路:看到排序,一定要想到用循环结构,还有sorted函数注意事项:a1数组的赋值参考代码:n=int(input())sl=list(map(int,input().split()))for i…… 题解列表 2022年03月29日 1 点赞 0 评论 710 浏览 评分:9.6
Python奖学金 利用列表字典和itemgetter模块解题 摘要:解题思路:利用嵌套列表字典将值存储好之后,使用python自带的itemgetter模块实现多关键字排序注意事项:题目中其他两个成绩是从大到小,而id是小的优先,顺序不一样,为了统一处理,我在赋值id…… 题解列表 2022年03月28日 0 点赞 0 评论 448 浏览 评分:9.9
蓝桥杯算法提高VIP-数组输出(Python) 摘要:** 第一个循环将数组中的所有数的绝对值添加到p列表中,将数组中的所有数的绝对以及下标值添加到m列表中。第二个循环是当m列表的每一个元组的第一个值是最大值时,就可以得到它的下标 ** li1=l…… 题解列表 2022年03月28日 0 点赞 0 评论 412 浏览 评分:0.0
字符串逆序 摘要:str=input() print(str[-1::-1])解题思路:注意事项:参考代码:str=input()print(str[-1::-1])…… 题解列表 2022年03月28日 0 点赞 0 评论 338 浏览 评分:0.0
python-日期问题 摘要:```python date=input().split("/") numlist=[] year=date[0] month=date[1] day=date[2] def func…… 题解列表 2022年03月28日 0 点赞 0 评论 395 浏览 评分:6.0
题解 1065: 二级C语言-最小绝对值 摘要:解题思路:函数 min 获得最小值列表方法 index 获得下标两位置值交换即可注意事项:务必注意,是在原始输入的10个数中调换位置错了4遍才看出来参考代码:arr = list(map(int,in…… 题解列表 2022年03月28日 0 点赞 1 评论 765 浏览 评分:6.0
编写题解 2015: 自动晾衣机 摘要:解题思路:注意事项:参考代码:l=int(input()) while True: try: ls=list(map(int,input().split())) …… 题解列表 2022年03月28日 0 点赞 0 评论 398 浏览 评分:0.0
python实现统计数字 摘要:先用字典将没有存储的数据依次存储进来,如果是第一次出现则将出现的次数置为一,出现过的则次数+1,最后用sorted给字典排序,关键值选择第一个值的参考代码:#统计数字n=int(input()) d…… 题解列表 2022年03月28日 0 点赞 0 评论 378 浏览 评分:9.9
datetime处理日期真是太省心了 摘要:```python import datetime s = input() #从输入的字符串里把年月日分别搞出来 years = int(s[:4]) mouths = int(s[4:6]…… 题解列表 2022年03月28日 1 点赞 1 评论 598 浏览 评分:9.0