24 бита ×<span> 800 </span>×<span> 600 = 11 520 000 бит = 1 440 000 байт</span>
Const N = 10;Const M = 10;Var A:Array [1..N, 1..M] Of Integer; i, j, imax, jmax, imin, jmin, temp:Integer; Begin randomize; For i := 1 to N do Begin For j := 1 to M do Begin A[i, j] := random(1000); End; End; imin := 1; imax := 1; jmin := 1; jmax := 1; For i := 1 to N do Begin For j := 1 to M do Begin If A[i, j] > A[imax, jmax] then Begin imax := i; jmax := j; End; If A[i, j] < A[imin, jmin] then Begin imin := i; jmin := j; End; End; End; writeln('first elem: ', A[imax, jmax], ', second elem: ', A[imin, jmin]); temp := A[imin, jmin]; A[imin, jmin] := A[imax, jmax]; A[imax, jmax] := temp; writeln('first elem: ', A[imax, jmax], ', second elem: ', A[imin, jmin]);End.
Объяснение:
a, b, c = map(int, input().split())
s=a+b+c
p=a*b*c
m=s/3
print('{}+{}+{}={}'.format(a, b, c, s))
print('{}*{}*{}={}'.format(a, b, c, p))
print('({}+{}+{})/3={}'.format(a, b, c, m))