Advertisement
Nenogzar

Untitled

Jan 27th, 2024
1,027
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. numbers = list(map(int,input().strip().split(" ")))
  2. how_many_numbers_to_remove = int(input())
  3.  
  4. for n in range(how_many_numbers_to_remove):
  5.     numbers.remove(min(numbers))
  6. count = 1
  7. for num in numbers:
  8.     if count != (len(numbers)):
  9.         print(f"{num},", end=" ")
  10.  
  11.     else:
  12.         print(f"{num}")
  13.     count += 1
Tags: 6 Survival
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement