题解 | #输入n个整数,输出其中最小的k个#
输入n个整数,输出其中最小的k个
https://www.nowcoder.com/practice/69ef2267aafd4d52b250a272fd27052c
a, b = map(int, input().split()) c, *args = map(int, input().split()) list1 = [c, *args] len(list1) == a list1.sort() for i in list1[:b]: print(i, end=" ")