#include<stdio.h>
void fun(char *s
)
{
int i
,j
=0,n
,n1
=0;
int a
[80];
for(i
=0;s
[i
]!='\0';i
++)
n
=i
;
for(i
=0;i
<n
;i
++){
if(s
[i
]>='0'&&s
[i
]<='9'){
n1
++;
a
[j
]=s
[i
];
j
++;
}
}
for(i
=0;i
<n
;i
++){
if(s
[i
]>='0'&&s
[i
]<='9'){
for(j
=i
;j
<n
;j
++)
s
[j
]=s
[j
+1];
i
--;
}
}
for(i
=n
-n1
,j
=0;i
<n
;i
++,j
++)
s
[i
]=a
[j
];
}
int main()
{char a
[80];
gets(a
);
fun(a
);
puts(a
);
}
转载请注明原文地址: https://lol.8miu.com/read-6986.html