Ответ:
mass = [int(s) for s in input().split()]
mn = mx = 0
for i in range(1, len(mass)):
if mass[i] > mass[mx]:
mx = i
if mass[i] < mass[mn]:
mn = i
print(mass[mx], mass[mn])
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
mass = [int(s) for s in input().split()]
mn = mx = 0
for i in range(1, len(mass)):
if mass[i] > mass[mx]:
mx = i
if mass[i] < mass[mn]:
mn = i
print(mass[mx], mass[mn])
Объяснение: