program bla;
var
n, i: integer;
a, b, P, Pmax: real;
begin
Readln(n);
for i := 1 to n do
Read(a, b);
P := (a + b) * 2;
if Pmax < P then
Pmax := P
end;
Writeln(Pmax);
end.
Объяснение:
program bla;
var
n, i: integer;
a, b, P, Pmax: real;
begin
Readln(n);
for i := 1 to n do
begin
Read(a, b);
P := (a + b) * 2;
if Pmax < P then
Pmax := P
end;
Writeln(Pmax);
end.
Объяснение: