Ответ: n=int(input(‘задайте размер массива ‘));lst=input().split(‘ ‘);mn=10e10;mx=0; p=-1; for i in range (0,n): if (int(lst[i])>0 and int(lst[i]) % 2==0): if (int(lst[i])<mn): mn=int(lst[i]); if (int(lst[i])>mx): mx=int(lst[i]); p=1;if (p<0): print(p,p);else: print(mn,mx);задайте размер массива 6-3 -4 -6 5 7 9-1 -1задайте размер массива 6-2 -1 2 3 5 62 6
Источник znanija.site