Ответ:
a =list(map(int, input().split()))
min_ind = a.index(min(a))
max_ind = a.index(max(a))
a[min_ind], a[max_ind] = a[max_ind], a[min_ind]
print(*a)
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
a =list(map(int, input().split()))
min_ind = a.index(min(a))
max_ind = a.index(max(a))
a[min_ind], a[max_ind] = a[max_ind], a[min_ind]
print(*a)
Объяснение: