Description: Numerical exchange
Time/Memory Limit: 1000 MS/32768 K
Submitted: 2222 Accepted: 1237
Problem Description
Enter n (n <100) number to identify the smallest number, it would be the first number after the exchange with the output of these numbers
Input
Multiple sets of input data, each representing one line, the beginning of each line is an integer n, indicates the number of values in this test case, followed by n is an integer. n = 0 represents the input end, and not treated.
Output
For each set of input data, the number of columns output exchanged, each output line.
Sample Input
42134
554321
0
Sample Output
1234
14325
To Search:
File list (Check if you may need any files):
wendang.txt