5 procedure jian(var hex
:string; k
:longint);
12 for i
:=1 to k
-1 do s
:=s
+[hex
[i
]];
13 for i
:=k
to length(hex
) do
15 if i
>k
then hex
[i
]:=succ('F');
18 if hex
[i
]=pred('A') then hex
[i
]:='9';
19 until not(hex
[i
] in s
);
30 for i
:=1 to length(hex
)-1 do k
:=k
*(16-i
);
39 if hex
[1]='0' then delete(hex
,1,1);