Uses DOS; Const n = 15000; Var mas : array [1..n] of ^word; i : integer; inp,out : text; hour,minute,second,sec100 : word; hour1,minute1,second1,sec1001 : longint; hour2,minute2,second2,sec1002 : longint; procedure QuickSort(left,right:word); var i,j:integer; x,y:word; begin i:=left; j:=right; x:=mas[left]^; repeat while (mas[i]^< x) and (ileft) do dec(j); if (i<=j) then begin y:=mas[i]^; mas[i]^:=mas[j]^; mas[j]^:=y; inc(i); dec(j); end; until i>j; if left