Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
217 B
2
Indexable
Never
n, q, k = list(map(int, input().split()))
arr = list(map(int, input().split()))
inp = list(map(int, input().split()))
for i in range(q):
    arr.append(inp[i])
    arr.sort(reverse=True)
    print(arr[k-1], end = ' ')
Leave a Comment