START
Wpisz: (M,N);
I:=1;
J:=1;
wpisz: A(I,J);
J:=J+1;
J≤N?
PP(I):=1;
I:=I+1;
I≤M?
sum(I):= A(I,J);
J<N?
P:=I+1;
sum(I)<sum(P)
H:=sum(P);sum(P):= sum(I);sum(I):=H;K:=PP(I);PP(I):=PP(P);PP(P):=K;
P:=P+1;
P≤M?
I<M?
wypisz: (sum(I); PP(I));
STOP
eedddiiii