var N, M, sum, min : Integer; mas:array[1..N, 1..M] or integer; begin for var I:=1 to N do for var J:=1 to M do sum:=sum+mas[I,J]; Writeln(sum); sum:=0; for var I:=1 to N do begin for var J:=1 to M do sum:=sum+mas[I,J]; Writeln(sum); sum:=0; end; min:=MaxInt; for var I:=1 to N do for var J:=1 to M do if mas[I,J] < min then min:=mas[I,J]; Writeln(min); end.