Мир. маг.гиг.................
Если между z и a умножение:
var z:array[1..13] of integer;
s,i:integer;
begin
s:=0;
for i:=1 to 13 do read(z[i]);
for i:=1 to 13 do
if i=5 then s:=s+z[i]*2
else if i=7 then s:=s+z[i]*4
else if i=10 then s:=s+z[i]*i
else s:=s+z[i]*z[i];
writeln(s);
end.
Const<span> N </span>= 10;
var
a: array[1..N] of integer;
i: byte;
b: integer;
begin
<span> </span>for<span> i</span>:=1 to<span> N </span>do
<span> </span>read(a[i]);
<span> </span>for<span> i</span>:=1 to<span> N </span>div 2 do begin
<span> b </span>:=<span> a</span>[i];
a[i] :=<span> a</span>[N-i+1];
a[N-i+1] :=<span> b</span>;
<span> </span>end;
<span> </span>for<span> i</span>:=1 to<span> N </span>do
<span> </span>write(a[i],' ');
<span> </span>writeln;
end<span>.</span>
Var a: real;
begin
readln(a);
a := Ceil(1/(a-1) + 1e-15);
writeln(a, ' -> ',1+1/a);
end.