#t355. 拼数
拼数
Splicing Numbers
Problem Description
Given positive integers , concatenate them into a single row, joining adjacent numbers head-to-tail, to form the largest possible integer.
Input Format
The first line has an integer, the number of integers .
The second line has integers, the given integers .
Output Format
A positive integer, the largest possible integer.
Sample Input
3
13 312 343
Sample Output
34331213
Sample Input 2
4
7 13 4 246
Sample Output 2
7424613
Hint
For all test cases, it is guaranteed that , .
NOIP 1998 Advanced Group, Problem 2.