1049: [编程入门]结构体之时间设计 摘要:```python class Year: def __init__(self): pass def put(self,year,mon,day): …… 题解列表 2023年12月20日 1 点赞 0 评论 259 浏览 评分:0.0
1046: [编程入门]自定义函数之数字后移 摘要:```python n = int(input()) li = list(map(str,input().split())) m = int(input()) for i in range(m…… 题解列表 2023年12月20日 0 点赞 0 评论 249 浏览 评分:0.0
1024: [编程入门]矩阵对角线求和 摘要:```python l = [] sum_zhu = 0 sum_fu=0 for i in range(3): l1 = list(map(int,input().split())…… 题解列表 2023年12月20日 0 点赞 0 评论 285 浏览 评分:0.0
最长最短单词 摘要:解题思路:注意事项:参考代码:myList=input().split()mydict= {}newList=[]for temp in myList: newList.append(len(t…… 题解列表 2023年12月20日 0 点赞 0 评论 408 浏览 评分:2.0
1637: 蓝桥杯算法训练VIP-斜率计算 摘要: x1,y1 = map(int,input().split()) x2,y2 = map(int,input().split()) if x1==x2: …… 题解列表 2023年12月19日 0 点赞 0 评论 222 浏览 评分:0.0
编写题解 2808: 买房子 摘要:解题思路:注意事项:参考代码:N, K = map(int, input().split()) money = N price = 200 for i in range(2, 23): …… 题解列表 2023年12月19日 1 点赞 2 评论 454 浏览 评分:7.3
2949: 垂直直方图 Python简单实现 摘要:解题思路:将一个新的数组保存每一个字母对应的出现次数,在打印时候按行输出,先输出最大的那个字母,依次按行打印,打印后次数要 -1注意事项:只有打印'* '的时候,需要减1,否则是不减的…… 题解列表 2023年12月19日 0 点赞 0 评论 269 浏览 评分:0.0
刷完这道题就回宿舍! 摘要:解题思路:注意事项:参考代码:myStr=input().strip()num=int(input())flag=1myStr1=""for temp in range(num): myList…… 题解列表 2023年12月18日 0 点赞 0 评论 1475 浏览 评分:0.0
归并排序(python) 摘要:解题思路:注意事项:参考代码:def merge_sort(nums): if len(nums) <= 1: return nums # 分割阶段 mid = len…… 题解列表 2023年12月18日 0 点赞 0 评论 345 浏览 评分:0.0
堆排序(python) 摘要:解题思路:注意事项:参考代码:def heapify(nums, n, i): if len(nums) <= 1: return nums largest = i # 初…… 题解列表 2023年12月18日 0 点赞 0 评论 276 浏览 评分:0.0