Problem2954--删数问题1

2954: 删数问题1

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 178  Solved: 122
[Status] [Submit] [Creator:]

Description

键盘输入一个的正整数 N(int范围),去掉其中任意 1个数字后剩下的数字按原左右次序将组成一个新的非负整数。编程对给定的 N ,寻找一种方案使得剩下的数字组成的新数最小。

Sample Input Copy

174538

Sample Output Copy

14538

HINT

输入样例2
456729
输出样例2
45629


输入样例3
23454329
输出样例3
2344329


输入样例4
2345
输出样例4
234





Source/Category