Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nums = [int(item) for item in input().split(" ")]
- count = int(input())
- nums.sort(reverse=True)
- start = 0
- sorted_nums = []
- while count != 0:
- sorted_nums += [nums[start]]
- start += 1
- count -= 1
- for num in sorted_nums:
- print(num, end=" ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement