n = int(input())
lst = []
for i in range(n):
lst.append(int(input()))
k = int(input())
for i in range(k):
max_val = max(lst)
lst.remove(max_val)
print(max_val)пайтон
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
n = int(input())
lst = []
for i in range(n):
lst.append(int(input()))
k = int(input())
for i in range(k):
max_val = max(lst)
lst.remove(max_val)
print(max_val)
пайтон