#include <iostream>
using namespace std;
int main(){
int arr[4][4], s=0;
for (int i=0; i<4; ++i)
for (int j=0; j<4; ++j)
cin>>arr[i][j];
for (int i=0; i<4; ++i) s+=arr[3][i];
cout<<s;
}
Const
n = 5;
var
arr: array [1..n] of integer;
i, N1, sum: integer;
begin
write('N = ');
readln(N1);
for i := 1 to n do
begin
write('A[', i, '] = ');
readln(arr[i]);
end;
i := 1;
sum := 0;
while (sum <= N1) and (i <= n) do
begin
sum := sum + arr[i];
i := i + 1;
end;
if sum > N1 then
writeln(sum)
else
writeln('Summa not grether then N');
end.
............................30
Var
k, x, z: real;
begin
readln(x);
readln(z);
if x > z then
k := sqrt(2 * (x - z) / z);
if x <= z then
k := x + z;
println(k);
end.