program random1;
var s,a,i,max,min,tmax,tmin:integer;
p:array[1..10] of integer;
begin
randomize;
s:=1;
while s=10 and amax
then begin tmax:=i; max:=p[i]; end;
writeln(max,tmax);(最大数和位置)
for i:=1 to 10 do
if p[i]
program random1;
var s,a,i,max,min,tmax,tmin:integer;
p:array[1..10] of integer;
begin
randomize;
s:=1;
while s=10 and amax
then begin tmax:=i; max:=p[i]; end;
writeln(max,tmax);(最大数和位置)
for i:=1 to 10 do
if p[i]