DiYane

Survival of the Biggest

Jul 31st, 2023 (edited)
1,042
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. a = input()
  2. number = int(input())
  3. ll = [int(i) for i in a.split(' ')]
  4.  
  5. for _ in range(number):
  6.     x = min(ll)
  7.     ll.remove(x)
  8.  
  9. result = ', '.join(map(str, ll))
  10. print(result)
Tags: python
Advertisement
Add Comment
Please, Sign In to add comment