706

Program zadacha_4;

const

p=100;

var

a :array [1..p,1..p] of integer; { }

n ,m :integer;{ }

i , j :integer;{ }

max :integer;{ }

min :integer;{ }

razn :integer;{ }

begin

write (m=); readln (m);

write (n=); readln (n);

writeln ();

for i:=1 to m do

begin

for j:=1 to n do read (a[i,j]);

end;

writeln ( );

for i:=1 to m do

begin

min :=a[i,1];

max :=a[i,1];

for j:=1 to n do

begin

if a[i,j]<min then min:=a[i,j];

if a[i,j]>max then max:=a[i,j];

end;

razn:=max-min;

writeln( ,i:3,- , razn:5);

end;

readln;

end.

m = 4

n = 7

:

 

5

23

-3

8

9

15

-26

7

19

13

-1

8

6

74

-8

65

87

3

1

9

5

77

96

4

5

8

3

7

 

1 49

2 75

3 95

4 93

 

 



:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
 
 
 
 
 
 

Warning: in_array() expects parameter 2 to be array, null given in /home/p198609/www/bestlogistics.ru/2f41c03c6df35aa46f8d897a4eed7d02/sape.php on line 192