| 
| Даны два квадратные матрицы А(NxN) и B(MxM).Вывести на экран ту из них,у которой сумма элементов лежащих выше главной диагонали меньше. |  
|  |  | 
| 
| var a,b:array[1..100,1..100]of integer;
 s,ss,i,j,n,m:integer;
 begin
 readln(n,m);
 for i:=1 to n do
 for j:=1 to n do begin
 read(a[i,j]);
 if i<j then s:=a[i,j];end;
 for i;=1 to m do
 for j:=1 to m do begin
 read(b[i,j]);
 if i<j then ss:=b[i,j];end;
 if s>ss then writeln(s) else writeln(ss);
 end.
 
 Нужна помощь? Сюда: vkontakte.ru/berestovskiy
 |  
|  |  |