- 集合删数
- 2009-06-02 21:57:09 @
有什么错? 只有10分
var
a:array[-5..5000000] of boolean;
s:string;
s1:string;
n,m,k,i,j,l,r:longint;
begin
readln(m,k);
fillchar(a,sizeof(a),false);
a[1]:=true;
i:=1;n:=1;
s:='1';
while i0 do
begin
dec(k);
j:=1;
while (s[j]>=s[j+1]) and (j1) do delete(s,1,1);
writeln(s);
end.
1 条评论
-
000wangbo LV 10 @ 2009-06-03 19:13:09
s:ansistring;
ke 80'
- 1