const
n=10;
type
TMx = array[1..n,1..n] of integer;
...
function GetCount(x : TMx; i : byte) : byte;
var
count,j: byte;
begin
count := 0;
for j := 1 to n do
if odd(x[i,j]) then inc(count);
GetCount := count;
end;
program pr1;
const n=4; m=4;
var
a:array[1..n,1..m] of integer;
b:array[1..n] of integer;
i,j,x,y,max,ij:integer;
begin
for i:=1 to n do begin
for j:=1 to m do read(a[i,j]);
end;
for i:=1 to m do begin
y:=0;
for j:=1 to n do
If a[i,j] mod 2=1 then y:=y+1;
b[i]:=y;
end;
max:=-100;
for i:=1 to n do begin
If b[i]>max then max:=b[i];
end;
........
read(n);
........
for s:=1 to n-1 do begin
for i:=1 to n-s do begin
Nechet1:=0; Nechet2:=0;
for j:=1 to k do if odd(a[i,j]) then Nechet1:=Nechet1+inc(count);
for j:=1 to k do if odd(a[i+1,j]) Nechet2:=Nechet2+inc(count)
if Nechet1>Nechet2 then
..................................................
write(i); {вывод номер строки}
end;
end;
max:=1;
for i:=1 to n do begin
If b[i]>b[max] then max:=i;
end;