Home > Back-end >  Line Numbers
Line Numbers

Time:12-24

Given two integers A and B, can rearrange A new digital C (cannot have A leading zero),
In the case of less than or equal to B, C how much is the maximum, if there is no output - 1
The input description
The first line contains two integers A and B, 1 & lt;=A, B<10 ^ 9
The output shows that
The maximum output qualified cases C
Enter the sample 1
1234, 3456,
The output sample 1
3421
Enter the sample 2
10000
The output sample 2
- 1
  • Related