智慧的屁
智慧的屁
全部文章
题解
Python基础(4)
算法学习(6)
算法课后题答案(1)
读书笔记(2)
归档
标签
去牛客网
登录
/
注册
智慧的屁的博客
全部文章
/ 题解
(共2篇)
Python 斐波那契数列类问题
while True: try: month = int(input()) count, n1, n2 = 2, 1, 1 if month < 3: print(1) else: ...
牛客2020算法基础入门班
2021-01-28
0
625
【sort()方法】输入n个整数,找出其中最小的K个数
输入n个整数,找出其中最小的K个数。例如输入4,5,1,6,2,7,3,8这8个数字,则最小的4个数字是1,2,3,4。示例1输入[4,5,1,6,2,7,3,8],4输出[1,2,3,4] class Solution: def GetLeastNumbers_Solution(self, ...
2021-01-13
1
563