[NOIP 1998 提高组] 拼数
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Problem Description
Given positive integers , arrange them in a row, concatenating adjacent numbers end to end, to form the largest possible integer.
Input Format
The first line contains an integer , the number of integers.
The second line contains integers , the given integers.
Output Format
Output a positive integer, the largest possible integer.
3
13 312 343
34331213
4
7 13 4 246
7424613
Hint
Constraints: For all test points, , .
NOIP 1998 Senior, Problem 2.
Translated by ChatGPT 5