已知a數組元素共個依次為b數組元素共個依次為則執行如下所示的過程語句sort後得到c數組各元素依次為數組abc的長度分別為l=m=n=請在程序中方框內填入正確的成分完成上述要求
PROCEDURE sort;
VAR i j k x: integer; d: ARRAY[m] OF integer;
BEGIN
FOR i:= TO m DO d[i]:=__()__;
i:=; j:=; k:=;
WHILE (i<=l) AND (j<=m) DO
BEGIN
IF a[i]>d[j] THEN BEGIN__()__; __()__END
ELSE BEGIN __()__; __()__END;
c[k]:=x; __()__
END;
WHILE__()__DO
BEGIN c[k]:=a[i]; k:=k+; i:=i+END;
WHILE__()__DO
BEGIN c[k]:=d[j]; k:=k+; j:=j+END;
END {sort} 【上海交通大學 七 (分)】
[] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] []
From:http://tw.wingwit.com/Article/program/sjjg/201311/22780.html