#4126. C++-拼数(number)(拓展03-输出这些数字组合的最小数字)

C++-拼数(number)(拓展03-输出这些数字组合的最小数字)

Background

Description

注: 1、输出这些数字组合的最小数字

2、字符串可以没有数字,则需要输出0

3、字符串可以都是0,则输出一个0

image

Format

Input

Output

Samples

ak10asdf082l0100
100000128
ak0asdf0000
0
yu
0

Limitation

1s, 1024KiB for each test case.