搞定了....
program Project1;
{$APPTYPE CONSOLE}
uses
SysUtils;
var
num,tmp:Integer;
bai,shi,ge:Integer;
begin
Readln(num);
bai:= num div 100;
shi:= (num - bai * 100) div 10;
ge := num - bai*100 - shi*10;
IF (BAI<SHI) THEN
BEGIN
TMP:=SHI;
SHI:=BAI;
BAI:=TMP;
END;
IF (BAI<GE) THEN
BEGIN
TMP:=GE;
GE:=BAI;
BAI:=TMP;
END;
IF (SHI<GE) THEN
BEGIN
TMP:=GE;
GE:=SHI;
shi:=TMP;
END;
num:=bai*100+shi*10+ge;
Writeln(num);
Readln;
{ TODO -oUser -cConsole Main : Insert code here }
end.