var a:array [1..4,1..4] of real;
i,j:integer;
s:real;
begin
for i:=1 to 4 do
for j:=1 to 4 do readln(a[i,j]);
for j:=1 to 4 do if j>i then s:=s+sqr(frac(a[i,j]));
writeln(s);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var a:array [1..4,1..4] of real;
i,j:integer;
s:real;
begin
for i:=1 to 4 do
for j:=1 to 4 do readln(a[i,j]);
for i:=1 to 4 do
for j:=1 to 4 do if j>i then s:=s+sqr(frac(a[i,j]));
writeln(s);
end.